RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration

Implements

public final class RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration
implements JsonSerializable<RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration>

Expiration of the role assignment schedule.

Constructor Summary

Constructor Description
RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration()

Creates an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration class.

Method Summary

Modifier and Type Method and Description
String duration()

Get the duration property: Duration of the role assignment schedule in TimeSpan.

OffsetDateTime endDateTime()

Get the endDateTime property: End DateTime of the role assignment schedule.

static RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

Get the type property: Type of the role assignment schedule expiration.

void validate()

Validates the instance.

RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withDuration(String duration)

Set the duration property: Duration of the role assignment schedule in TimeSpan.

RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: End DateTime of the role assignment schedule.

RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withType(Type type)

Set the type property: Type of the role assignment schedule expiration.

Methods inherited from java.lang.Object

Constructor Details

RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration

public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration()

Creates an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration class.

Method Details

duration

public String duration()

Get the duration property: Duration of the role assignment schedule in TimeSpan.

Returns:

the duration value.

endDateTime

public OffsetDateTime endDateTime()

Get the endDateTime property: End DateTime of the role assignment schedule.

Returns:

the endDateTime value.

fromJson

public static RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

Get the type property: Type of the role assignment schedule expiration.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDuration

public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withDuration(String duration)

Set the duration property: Duration of the role assignment schedule in TimeSpan.

Parameters:

duration - the duration value to set.

Returns:

the RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration object itself.

withEndDateTime

public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: End DateTime of the role assignment schedule.

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration object itself.

withType

public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withType(Type type)

Set the type property: Type of the role assignment schedule expiration.

Parameters:

type - the type value to set.

Returns:

the RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration object itself.

Applies to