RoleEligibilityScheduleRequestPropertiesScheduleInfo Class

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

Implements

public final class RoleEligibilityScheduleRequestPropertiesScheduleInfo
implements JsonSerializable<RoleEligibilityScheduleRequestPropertiesScheduleInfo>

Schedule info of the role eligibility schedule.

Constructor Summary

Constructor Description
RoleEligibilityScheduleRequestPropertiesScheduleInfo()

Creates an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfo class.

Method Summary

Modifier and Type Method and Description
RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration expiration()

Get the expiration property: Expiration of the role eligibility schedule.

static RoleEligibilityScheduleRequestPropertiesScheduleInfo fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfo from the JsonReader.

OffsetDateTime startDateTime()

Get the startDateTime property: Start DateTime of the role eligibility schedule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleEligibilityScheduleRequestPropertiesScheduleInfo withExpiration(RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration expiration)

Set the expiration property: Expiration of the role eligibility schedule.

RoleEligibilityScheduleRequestPropertiesScheduleInfo withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: Start DateTime of the role eligibility schedule.

Methods inherited from java.lang.Object

Constructor Details

RoleEligibilityScheduleRequestPropertiesScheduleInfo

public RoleEligibilityScheduleRequestPropertiesScheduleInfo()

Creates an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfo class.

Method Details

expiration

public RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration expiration()

Get the expiration property: Expiration of the role eligibility schedule.

Returns:

the expiration value.

fromJson

public static RoleEligibilityScheduleRequestPropertiesScheduleInfo fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime property: Start DateTime of the role eligibility schedule.

Returns:

the startDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExpiration

public RoleEligibilityScheduleRequestPropertiesScheduleInfo withExpiration(RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration expiration)

Set the expiration property: Expiration of the role eligibility schedule.

Parameters:

expiration - the expiration value to set.

Returns:

the RoleEligibilityScheduleRequestPropertiesScheduleInfo object itself.

withStartDateTime

public RoleEligibilityScheduleRequestPropertiesScheduleInfo withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: Start DateTime of the role eligibility schedule.

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the RoleEligibilityScheduleRequestPropertiesScheduleInfo object itself.

Applies to