Class RoleEligibilityScheduleRequestPropertiesScheduleInfo
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleEligibilityScheduleRequestPropertiesScheduleInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleEligibilityScheduleRequestPropertiesScheduleInfo>
public final class RoleEligibilityScheduleRequestPropertiesScheduleInfo
extends Object
implements com.azure.json.JsonSerializable<RoleEligibilityScheduleRequestPropertiesScheduleInfo>
Schedule info of the role eligibility schedule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the expiration property: Expiration of the role eligibility schedule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfo from the JsonReader.Get the startDateTime property: Start DateTime of the role eligibility schedule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the expiration property: Expiration of the role eligibility schedule.withStartDateTime(OffsetDateTime startDateTime) Set the startDateTime property: Start DateTime of the role eligibility schedule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RoleEligibilityScheduleRequestPropertiesScheduleInfo
public RoleEligibilityScheduleRequestPropertiesScheduleInfo()Creates an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfo class.
-
-
Method Details
-
startDateTime
Get the startDateTime property: Start DateTime of the role eligibility schedule.- Returns:
- the startDateTime value.
-
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.
-
expiration
Get the expiration property: Expiration of the role eligibility schedule.- Returns:
- the expiration value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RoleEligibilityScheduleRequestPropertiesScheduleInfo>- Throws:
IOException
-
fromJson
public static RoleEligibilityScheduleRequestPropertiesScheduleInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-