RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration
- com.
Implements
public final class RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration
implements JsonSerializable<RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration>
Expiration of the role assignment schedule.
Constructor Summary
Constructor | Description |
---|---|
RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration() |
Creates an instance of Role |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
duration()
Get the duration property: Duration of the role assignment schedule in Time |
Offset |
endDateTime()
Get the end |
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
Json |
toJson(JsonWriter jsonWriter) |
Type |
type()
Get the type property: Type of the role assignment schedule expiration. |
void |
validate()
Validates the instance. |
Role |
withDuration(String duration)
Set the duration property: Duration of the role assignment schedule in Time |
Role |
withEndDateTime(OffsetDateTime endDateTime)
Set the end |
Role |
withType(Type type)
Set the type property: Type of the role assignment schedule expiration. |
Methods inherited from java.lang.Object
Constructor Details
RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration
public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration()
Creates an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration class.
Method Details
duration
public String duration()
Get the duration property: Duration of the role assignment schedule in TimeSpan.
Returns:
endDateTime
public OffsetDateTime endDateTime()
Get the endDateTime property: End DateTime of the role assignment schedule.
Returns:
fromJson
public static RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration fromJson(JsonReader jsonReader)
Reads an instance of RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration from the JsonReader.
Parameters:
Returns:
Throws:
toJson
type
public Type type()
Get the type property: Type of the role assignment schedule expiration.
Returns:
validate
public void validate()
Validates the instance.
withDuration
public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withDuration(String duration)
Set the duration property: Duration of the role assignment schedule in TimeSpan.
Parameters:
Returns:
withEndDateTime
public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime property: End DateTime of the role assignment schedule.
Parameters:
Returns:
withType
public RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration withType(Type type)
Set the type property: Type of the role assignment schedule expiration.
Parameters:
Returns:
Applies to
Azure SDK for Java