Class RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration>
public final class RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration
extends Object
implements com.azure.json.JsonSerializable<RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration>
Expiration of the role eligibility schedule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration class. -
Method Summary
Modifier and TypeMethodDescriptionduration()Get the duration property: Duration of the role eligibility schedule in TimeSpan.Get the endDateTime property: End DateTime of the role eligibility schedule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the role eligibility schedule expiration.voidvalidate()Validates the instance.withDuration(String duration) Set the duration property: Duration of the role eligibility schedule in TimeSpan.withEndDateTime(OffsetDateTime endDateTime) Set the endDateTime property: End DateTime of the role eligibility schedule.Set the type property: Type of the role eligibility schedule expiration.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
-
RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration
public RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration()Creates an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration class.
-
-
Method Details
-
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
Get the endDateTime property: End DateTime of the role eligibility schedule.- Returns:
- the endDateTime value.
-
withEndDateTime
public RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration withEndDateTime(OffsetDateTime endDateTime) Set the endDateTime property: End DateTime of the role eligibility schedule.- Parameters:
endDateTime- the endDateTime value to set.- Returns:
- the RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration object itself.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration>- Throws:
IOException
-
fromJson
public static RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration 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 RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration.
-