Share via


MicrosoftGraphDateTimeZone Class

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

Implements

public final class MicrosoftGraphDateTimeZone
implements JsonSerializable<MicrosoftGraphDateTimeZone>

Represents a date time time zone.

Constructor Summary

Constructor Description
MicrosoftGraphDateTimeZone()

Creates an instance of MicrosoftGraphDateTimeZone class.

Method Summary

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

Get the additionalProperties property: dateTimeTimeZone.

String dateTime()

Get the dateTime property: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).

static MicrosoftGraphDateTimeZone fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDateTimeZone from the JsonReader.

String timeZone()

Get the timeZone property: Represents a time zone, for example, 'Pacific Standard Time'.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphDateTimeZone withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: dateTimeTimeZone.

MicrosoftGraphDateTimeZone withDateTime(String dateTime)

Set the dateTime property: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).

MicrosoftGraphDateTimeZone withTimeZone(String timeZone)

Set the timeZone property: Represents a time zone, for example, 'Pacific Standard Time'.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDateTimeZone

public MicrosoftGraphDateTimeZone()

Creates an instance of MicrosoftGraphDateTimeZone class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: dateTimeTimeZone.

Returns:

the additionalProperties value.

dateTime

public String dateTime()

Get the dateTime property: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).

Returns:

the dateTime value.

fromJson

public static MicrosoftGraphDateTimeZone fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDateTimeZone from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

timeZone

public String timeZone()

Get the timeZone property: Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.

Returns:

the timeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphDateTimeZone withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: dateTimeTimeZone.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDateTimeZone object itself.

withDateTime

public MicrosoftGraphDateTimeZone withDateTime(String dateTime)

Set the dateTime property: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).

Parameters:

dateTime - the dateTime value to set.

Returns:

the MicrosoftGraphDateTimeZone object itself.

withTimeZone

public MicrosoftGraphDateTimeZone withTimeZone(String timeZone)

Set the timeZone property: Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.

Parameters:

timeZone - the timeZone value to set.

Returns:

the MicrosoftGraphDateTimeZone object itself.

Applies to