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

MicrosoftGraphTimeRange Class

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

Implements

public final class MicrosoftGraphTimeRange
implements JsonSerializable<MicrosoftGraphTimeRange>

timeRange.

Constructor Summary

Constructor Description
MicrosoftGraphTimeRange()

Creates an instance of MicrosoftGraphTimeRange class.

Method Summary

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

Get the additionalProperties property: timeRange.

String endTime()

Get the endTime property: End time for the time range.

static MicrosoftGraphTimeRange fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeRange from the JsonReader.

String startTime()

Get the startTime property: Start time for the time range.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphTimeRange withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: timeRange.

MicrosoftGraphTimeRange withEndTime(String endTime)

Set the endTime property: End time for the time range.

MicrosoftGraphTimeRange withStartTime(String startTime)

Set the startTime property: Start time for the time range.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTimeRange

public MicrosoftGraphTimeRange()

Creates an instance of MicrosoftGraphTimeRange class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: timeRange.

Returns:

the additionalProperties value.

endTime

public String endTime()

Get the endTime property: End time for the time range.

Returns:

the endTime value.

fromJson

public static MicrosoftGraphTimeRange fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeRange from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startTime

public String startTime()

Get the startTime property: Start time for the time range.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphTimeRange withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: timeRange.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTimeRange object itself.

withEndTime

public MicrosoftGraphTimeRange withEndTime(String endTime)

Set the endTime property: End time for the time range.

Parameters:

endTime - the endTime value to set.

Returns:

the MicrosoftGraphTimeRange object itself.

withStartTime

public MicrosoftGraphTimeRange withStartTime(String startTime)

Set the startTime property: Start time for the time range.

Parameters:

startTime - the startTime value to set.

Returns:

the MicrosoftGraphTimeRange object itself.

Applies to