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