Class RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration

java.lang.Object
com.azure.resourcemanager.authorization.models.RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration
All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration>

public final class RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration extends Object implements com.azure.json.JsonSerializable<RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration>
Expiration of the role assignment schedule.
  • Constructor Details

    • RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration

      public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration()
      Creates an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration class.
  • Method Details

    • type

      public Type type()
      Get the type property: Type of the role assignment schedule expiration.
      Returns:
      the type value.
    • withType

      Set the type property: Type of the role assignment schedule expiration.
      Parameters:
      type - the type value to set.
      Returns:
      the RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration object itself.
    • endDateTime

      public OffsetDateTime endDateTime()
      Get the endDateTime property: End DateTime of the role assignment schedule.
      Returns:
      the endDateTime value.
    • withEndDateTime

      Set the endDateTime property: End DateTime of the role assignment schedule.
      Parameters:
      endDateTime - the endDateTime value to set.
      Returns:
      the RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration object itself.
    • duration

      public String duration()
      Get the duration property: Duration of the role assignment schedule in TimeSpan.
      Returns:
      the duration value.
    • withDuration

      Set the duration property: Duration of the role assignment schedule in TimeSpan.
      Parameters:
      duration - the duration value to set.
      Returns:
      the RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration>
      Throws:
      IOException
    • fromJson

      public static RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.