Class RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration
Expiration of the role assignment schedule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration class. -
Method Summary
Modifier and TypeMethodDescriptionduration()Get the duration property: Duration of the role assignment schedule in TimeSpan.Get the endDateTime property: End DateTime of the role assignment schedule.type()Get the type property: Type of the role assignment schedule expiration.voidvalidate()Validates the instance.withDuration(String duration) Set the duration property: Duration of the role assignment schedule in TimeSpan.withEndDateTime(OffsetDateTime endDateTime) Set the endDateTime property: End DateTime of the role assignment schedule.Set the type property: Type of the role assignment schedule expiration.
-
Constructor Details
-
RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration
public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration()Creates an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration class.
-
-
Method Details
-
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
Get the endDateTime property: End DateTime of the role assignment schedule.- Returns:
- the endDateTime value.
-
withEndDateTime
public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withEndDateTime(OffsetDateTime endDateTime) Set the endDateTime property: End DateTime of the role assignment schedule.- Parameters:
endDateTime- the endDateTime value to set.- Returns:
- the RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration object itself.
-
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.
-