RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration Class

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

Implements

public final class RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration
implements JsonSerializable<RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration>

Expiration of the role eligibility schedule.

Constructor Summary

Constructor Description
RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration()

Creates an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration class.

Method Summary

Modifier and Type Method and Description
String duration()

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

OffsetDateTime endDateTime()

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

static RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

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

void validate()

Validates the instance.

RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration withDuration(String duration)

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

RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration withEndDateTime(OffsetDateTime endDateTime)

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

RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration withType(Type type)

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

Methods inherited from java.lang.Object

Constructor Details

RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration

public RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration()

Creates an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration class.

Method Details

duration

public String duration()

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

Returns:

the duration value.

endDateTime

public OffsetDateTime endDateTime()

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

Returns:

the endDateTime value.

fromJson

public static RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

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

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDuration

public RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration withDuration(String duration)

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

Parameters:

duration - the duration value to set.

Returns:

the RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration object itself.

withEndDateTime

public RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration withEndDateTime(OffsetDateTime endDateTime)

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

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration object itself.

withType

public RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration withType(Type type)

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

Parameters:

type - the type value to set.

Returns:

the RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration object itself.

Applies to