ScopingAnswer Class

  • java.lang.Object
    • com.azure.resourcemanager.appcomplianceautomation.models.ScopingAnswer

Implements

public final class ScopingAnswer
implements JsonSerializable<ScopingAnswer>

Scoping answer.

Constructor Summary

Constructor Description
ScopingAnswer()

Creates an instance of ScopingAnswer class.

Method Summary

Modifier and Type Method and Description
List<String> answers()

Get the answers property: Question answer value list.

static ScopingAnswer fromJson(JsonReader jsonReader)

Reads an instance of ScopingAnswer from the JsonReader.

String questionId()

Get the questionId property: Question id.

JsonWriter toJson(JsonWriter jsonWriter)
ScopingAnswer withAnswers(List<String> answers)

Set the answers property: Question answer value list.

ScopingAnswer withQuestionId(String questionId)

Set the questionId property: Question id.

Methods inherited from java.lang.Object

Constructor Details

ScopingAnswer

public ScopingAnswer()

Creates an instance of ScopingAnswer class.

Method Details

answers

public List<String> answers()

Get the answers property: Question answer value list.

Returns:

the answers value.

fromJson

public static ScopingAnswer fromJson(JsonReader jsonReader)

Reads an instance of ScopingAnswer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScopingAnswer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

questionId

public String questionId()

Get the questionId property: Question id.

Returns:

the questionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAnswers

public ScopingAnswer withAnswers(List<String> answers)

Set the answers property: Question answer value list.

Parameters:

answers - the answers value to set.

Returns:

the ScopingAnswer object itself.

withQuestionId

public ScopingAnswer withQuestionId(String questionId)

Set the questionId property: Question id.

Parameters:

questionId - the questionId value to set.

Returns:

the ScopingAnswer object itself.

Applies to