Class RoleAssignmentScheduleRequestPropertiesScheduleInfo
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleAssignmentScheduleRequestPropertiesScheduleInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleAssignmentScheduleRequestPropertiesScheduleInfo>
public final class RoleAssignmentScheduleRequestPropertiesScheduleInfo
extends Object
implements com.azure.json.JsonSerializable<RoleAssignmentScheduleRequestPropertiesScheduleInfo>
Schedule info of the role assignment schedule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the expiration property: Expiration of the role assignment schedule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfo from the JsonReader.Get the startDateTime property: Start DateTime of the role assignment schedule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the expiration property: Expiration of the role assignment schedule.withStartDateTime(OffsetDateTime startDateTime) Set the startDateTime property: Start DateTime of the role assignment 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
-
RoleAssignmentScheduleRequestPropertiesScheduleInfo
public RoleAssignmentScheduleRequestPropertiesScheduleInfo()Creates an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfo class.
-
-
Method Details
-
startDateTime
Get the startDateTime property: Start DateTime of the role assignment schedule.- Returns:
- the startDateTime value.
-
withStartDateTime
public RoleAssignmentScheduleRequestPropertiesScheduleInfo withStartDateTime(OffsetDateTime startDateTime) Set the startDateTime property: Start DateTime of the role assignment schedule.- Parameters:
startDateTime- the startDateTime value to set.- Returns:
- the RoleAssignmentScheduleRequestPropertiesScheduleInfo object itself.
-
expiration
Get the expiration property: Expiration of the role assignment schedule.- Returns:
- the expiration value.
-
withExpiration
public RoleAssignmentScheduleRequestPropertiesScheduleInfo withExpiration(RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration expiration) Set the expiration property: Expiration of the role assignment schedule.- Parameters:
expiration- the expiration value to set.- Returns:
- the RoleAssignmentScheduleRequestPropertiesScheduleInfo 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<RoleAssignmentScheduleRequestPropertiesScheduleInfo>- Throws:
IOException
-
fromJson
public static RoleAssignmentScheduleRequestPropertiesScheduleInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoleAssignmentScheduleRequestPropertiesScheduleInfo 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 RoleAssignmentScheduleRequestPropertiesScheduleInfo.
-