Class RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration

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

public final class RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration extends Object
Expiration of the role eligibility schedule.
  • Constructor Details

    • RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration

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

    • type

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

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

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

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

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

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

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