你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphChoiceColumn Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChoiceColumn

Implements

public final class MicrosoftGraphChoiceColumn
implements JsonSerializable<MicrosoftGraphChoiceColumn>

choiceColumn.

Constructor Summary

Constructor Description
MicrosoftGraphChoiceColumn()

Creates an instance of MicrosoftGraphChoiceColumn class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: choiceColumn.

Boolean allowTextEntry()

Get the allowTextEntry property: If true, allows custom values that aren't in the configured choices.

List<String> choices()

Get the choices property: The list of values available for this column.

String displayAs()

Get the displayAs property: How the choices are to be presented in the UX.

static MicrosoftGraphChoiceColumn fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphChoiceColumn from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphChoiceColumn withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: choiceColumn.

MicrosoftGraphChoiceColumn withAllowTextEntry(Boolean allowTextEntry)

Set the allowTextEntry property: If true, allows custom values that aren't in the configured choices.

MicrosoftGraphChoiceColumn withChoices(List<String> choices)

Set the choices property: The list of values available for this column.

MicrosoftGraphChoiceColumn withDisplayAs(String displayAs)

Set the displayAs property: How the choices are to be presented in the UX.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphChoiceColumn

public MicrosoftGraphChoiceColumn()

Creates an instance of MicrosoftGraphChoiceColumn class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: choiceColumn.

Returns:

the additionalProperties value.

allowTextEntry

public Boolean allowTextEntry()

Get the allowTextEntry property: If true, allows custom values that aren't in the configured choices.

Returns:

the allowTextEntry value.

choices

public List choices()

Get the choices property: The list of values available for this column.

Returns:

the choices value.

displayAs

public String displayAs()

Get the displayAs property: How the choices are to be presented in the UX. Must be one of checkBoxes, dropDownMenu, or radioButtons.

Returns:

the displayAs value.

fromJson

public static MicrosoftGraphChoiceColumn fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphChoiceColumn from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphChoiceColumn.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphChoiceColumn withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: choiceColumn.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphChoiceColumn object itself.

withAllowTextEntry

public MicrosoftGraphChoiceColumn withAllowTextEntry(Boolean allowTextEntry)

Set the allowTextEntry property: If true, allows custom values that aren't in the configured choices.

Parameters:

allowTextEntry - the allowTextEntry value to set.

Returns:

the MicrosoftGraphChoiceColumn object itself.

withChoices

public MicrosoftGraphChoiceColumn withChoices(List choices)

Set the choices property: The list of values available for this column.

Parameters:

choices - the choices value to set.

Returns:

the MicrosoftGraphChoiceColumn object itself.

withDisplayAs

public MicrosoftGraphChoiceColumn withDisplayAs(String displayAs)

Set the displayAs property: How the choices are to be presented in the UX. Must be one of checkBoxes, dropDownMenu, or radioButtons.

Parameters:

displayAs - the displayAs value to set.

Returns:

the MicrosoftGraphChoiceColumn object itself.

Applies to