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

MicrosoftGraphDateTimeColumn Class

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

Implements

public final class MicrosoftGraphDateTimeColumn
implements JsonSerializable<MicrosoftGraphDateTimeColumn>

dateTimeColumn.

Constructor Summary

Constructor Description
MicrosoftGraphDateTimeColumn()

Creates an instance of MicrosoftGraphDateTimeColumn class.

Method Summary

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

Get the additionalProperties property: dateTimeColumn.

String displayAs()

Get the displayAs property: How the value should be presented in the UX.

String format()

Get the format property: Indicates whether the value should be presented as a date only or a date and time.

static MicrosoftGraphDateTimeColumn fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDateTimeColumn from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphDateTimeColumn withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: dateTimeColumn.

MicrosoftGraphDateTimeColumn withDisplayAs(String displayAs)

Set the displayAs property: How the value should be presented in the UX.

MicrosoftGraphDateTimeColumn withFormat(String format)

Set the format property: Indicates whether the value should be presented as a date only or a date and time.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDateTimeColumn

public MicrosoftGraphDateTimeColumn()

Creates an instance of MicrosoftGraphDateTimeColumn class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: dateTimeColumn.

Returns:

the additionalProperties value.

displayAs

public String displayAs()

Get the displayAs property: How the value should be presented in the UX. Must be one of default, friendly, or standard. See below for more details. If unspecified, treated as default.

Returns:

the displayAs value.

format

public String format()

Get the format property: Indicates whether the value should be presented as a date only or a date and time. Must be one of dateOnly or dateTime.

Returns:

the format value.

fromJson

public static MicrosoftGraphDateTimeColumn fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDateTimeColumn from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphDateTimeColumn 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 MicrosoftGraphDateTimeColumn.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphDateTimeColumn withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: dateTimeColumn.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDateTimeColumn object itself.

withDisplayAs

public MicrosoftGraphDateTimeColumn withDisplayAs(String displayAs)

Set the displayAs property: How the value should be presented in the UX. Must be one of default, friendly, or standard. See below for more details. If unspecified, treated as default.

Parameters:

displayAs - the displayAs value to set.

Returns:

the MicrosoftGraphDateTimeColumn object itself.

withFormat

public MicrosoftGraphDateTimeColumn withFormat(String format)

Set the format property: Indicates whether the value should be presented as a date only or a date and time. Must be one of dateOnly or dateTime.

Parameters:

format - the format value to set.

Returns:

the MicrosoftGraphDateTimeColumn object itself.

Applies to