Compartilhar via


RoleEligibilityScheduleRequestProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.RoleEligibilityScheduleRequestProperties

Implements

public final class RoleEligibilityScheduleRequestProperties
implements JsonSerializable<RoleEligibilityScheduleRequestProperties>

Role eligibility schedule request properties with scope.

Constructor Summary

Constructor Description
RoleEligibilityScheduleRequestProperties()

Creates an instance of RoleEligibilityScheduleRequestProperties class.

Method Summary

Modifier and Type Method and Description
String approvalId()

Get the approvalId property: The approvalId of the role eligibility schedule request.

String condition()

Get the condition property: The conditions on the role assignment.

String conditionVersion()

Get the conditionVersion property: Version of the condition.

OffsetDateTime createdOn()

Get the createdOn property: DateTime when role eligibility schedule request was created.

ExpandedProperties expandedProperties()

Get the expandedProperties property: Additional properties of principal, scope and role definition.

static RoleEligibilityScheduleRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleRequestProperties from the JsonReader.

String justification()

Get the justification property: Justification for the role eligibility.

String principalId()

Get the principalId property: The principal ID.

PrincipalType principalType()

Get the principalType property: The principal type of the assigned principal ID.

RequestType requestType()

Get the requestType property: The type of the role assignment schedule request.

String requestorId()

Get the requestorId property: Id of the user who created this request.

String roleDefinitionId()

Get the roleDefinitionId property: The role definition ID.

RoleEligibilityScheduleRequestPropertiesScheduleInfo scheduleInfo()

Get the scheduleInfo property: Schedule info of the role eligibility schedule.

String scope()

Get the scope property: The role eligibility schedule request scope.

Status status()

Get the status property: The status of the role eligibility schedule request.

String targetRoleEligibilityScheduleId()

Get the targetRoleEligibilityScheduleId property: The resultant role eligibility schedule id or the role eligibility schedule id being updated.

String targetRoleEligibilityScheduleInstanceId()

Get the targetRoleEligibilityScheduleInstanceId property: The role eligibility schedule instance id being updated.

RoleEligibilityScheduleRequestPropertiesTicketInfo ticketInfo()

Get the ticketInfo property: Ticket Info of the role eligibility.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleEligibilityScheduleRequestProperties withCondition(String condition)

Set the condition property: The conditions on the role assignment.

RoleEligibilityScheduleRequestProperties withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

RoleEligibilityScheduleRequestProperties withJustification(String justification)

Set the justification property: Justification for the role eligibility.

RoleEligibilityScheduleRequestProperties withPrincipalId(String principalId)

Set the principalId property: The principal ID.

RoleEligibilityScheduleRequestProperties withRequestType(RequestType requestType)

Set the requestType property: The type of the role assignment schedule request.

RoleEligibilityScheduleRequestProperties withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

RoleEligibilityScheduleRequestProperties withScheduleInfo(RoleEligibilityScheduleRequestPropertiesScheduleInfo scheduleInfo)

Set the scheduleInfo property: Schedule info of the role eligibility schedule.

RoleEligibilityScheduleRequestProperties withTargetRoleEligibilityScheduleId(String targetRoleEligibilityScheduleId)

Set the targetRoleEligibilityScheduleId property: The resultant role eligibility schedule id or the role eligibility schedule id being updated.

RoleEligibilityScheduleRequestProperties withTargetRoleEligibilityScheduleInstanceId(String targetRoleEligibilityScheduleInstanceId)

Set the targetRoleEligibilityScheduleInstanceId property: The role eligibility schedule instance id being updated.

RoleEligibilityScheduleRequestProperties withTicketInfo(RoleEligibilityScheduleRequestPropertiesTicketInfo ticketInfo)

Set the ticketInfo property: Ticket Info of the role eligibility.

Methods inherited from java.lang.Object

Constructor Details

RoleEligibilityScheduleRequestProperties

public RoleEligibilityScheduleRequestProperties()

Creates an instance of RoleEligibilityScheduleRequestProperties class.

Method Details

approvalId

public String approvalId()

Get the approvalId property: The approvalId of the role eligibility schedule request.

Returns:

the approvalId value.

condition

public String condition()

Get the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource\[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

Returns:

the condition value.

conditionVersion

public String conditionVersion()

Get the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.

Returns:

the conditionVersion value.

createdOn

public OffsetDateTime createdOn()

Get the createdOn property: DateTime when role eligibility schedule request was created.

Returns:

the createdOn value.

expandedProperties

public ExpandedProperties expandedProperties()

Get the expandedProperties property: Additional properties of principal, scope and role definition.

Returns:

the expandedProperties value.

fromJson

public static RoleEligibilityScheduleRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleRequestProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleEligibilityScheduleRequestProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

justification

public String justification()

Get the justification property: Justification for the role eligibility.

Returns:

the justification value.

principalId

public String principalId()

Get the principalId property: The principal ID.

Returns:

the principalId value.

principalType

public PrincipalType principalType()

Get the principalType property: The principal type of the assigned principal ID.

Returns:

the principalType value.

requestType

public RequestType requestType()

Get the requestType property: The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc.

Returns:

the requestType value.

requestorId

public String requestorId()

Get the requestorId property: Id of the user who created this request.

Returns:

the requestorId value.

roleDefinitionId

public String roleDefinitionId()

Get the roleDefinitionId property: The role definition ID.

Returns:

the roleDefinitionId value.

scheduleInfo

public RoleEligibilityScheduleRequestPropertiesScheduleInfo scheduleInfo()

Get the scheduleInfo property: Schedule info of the role eligibility schedule.

Returns:

the scheduleInfo value.

scope

public String scope()

Get the scope property: The role eligibility schedule request scope.

Returns:

the scope value.

status

public Status status()

Get the status property: The status of the role eligibility schedule request.

Returns:

the status value.

targetRoleEligibilityScheduleId

public String targetRoleEligibilityScheduleId()

Get the targetRoleEligibilityScheduleId property: The resultant role eligibility schedule id or the role eligibility schedule id being updated.

Returns:

the targetRoleEligibilityScheduleId value.

targetRoleEligibilityScheduleInstanceId

public String targetRoleEligibilityScheduleInstanceId()

Get the targetRoleEligibilityScheduleInstanceId property: The role eligibility schedule instance id being updated.

Returns:

the targetRoleEligibilityScheduleInstanceId value.

ticketInfo

public RoleEligibilityScheduleRequestPropertiesTicketInfo ticketInfo()

Get the ticketInfo property: Ticket Info of the role eligibility.

Returns:

the ticketInfo value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCondition

public RoleEligibilityScheduleRequestProperties withCondition(String condition)

Set the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource\[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

Parameters:

condition - the condition value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withConditionVersion

public RoleEligibilityScheduleRequestProperties withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.

Parameters:

conditionVersion - the conditionVersion value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withJustification

public RoleEligibilityScheduleRequestProperties withJustification(String justification)

Set the justification property: Justification for the role eligibility.

Parameters:

justification - the justification value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withPrincipalId

public RoleEligibilityScheduleRequestProperties withPrincipalId(String principalId)

Set the principalId property: The principal ID.

Parameters:

principalId - the principalId value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withRequestType

public RoleEligibilityScheduleRequestProperties withRequestType(RequestType requestType)

Set the requestType property: The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc.

Parameters:

requestType - the requestType value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withRoleDefinitionId

public RoleEligibilityScheduleRequestProperties withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

Parameters:

roleDefinitionId - the roleDefinitionId value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withScheduleInfo

public RoleEligibilityScheduleRequestProperties withScheduleInfo(RoleEligibilityScheduleRequestPropertiesScheduleInfo scheduleInfo)

Set the scheduleInfo property: Schedule info of the role eligibility schedule.

Parameters:

scheduleInfo - the scheduleInfo value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withTargetRoleEligibilityScheduleId

public RoleEligibilityScheduleRequestProperties withTargetRoleEligibilityScheduleId(String targetRoleEligibilityScheduleId)

Set the targetRoleEligibilityScheduleId property: The resultant role eligibility schedule id or the role eligibility schedule id being updated.

Parameters:

targetRoleEligibilityScheduleId - the targetRoleEligibilityScheduleId value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withTargetRoleEligibilityScheduleInstanceId

public RoleEligibilityScheduleRequestProperties withTargetRoleEligibilityScheduleInstanceId(String targetRoleEligibilityScheduleInstanceId)

Set the targetRoleEligibilityScheduleInstanceId property: The role eligibility schedule instance id being updated.

Parameters:

targetRoleEligibilityScheduleInstanceId - the targetRoleEligibilityScheduleInstanceId value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

withTicketInfo

public RoleEligibilityScheduleRequestProperties withTicketInfo(RoleEligibilityScheduleRequestPropertiesTicketInfo ticketInfo)

Set the ticketInfo property: Ticket Info of the role eligibility.

Parameters:

ticketInfo - the ticketInfo value to set.

Returns:

the RoleEligibilityScheduleRequestProperties object itself.

Applies to