你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RoleAssignmentScheduleRequestProperties Class

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

Implements

public final class RoleAssignmentScheduleRequestProperties
implements JsonSerializable<RoleAssignmentScheduleRequestProperties>

Role assignment schedule request properties with scope.

Constructor Summary

Constructor Description
RoleAssignmentScheduleRequestProperties()

Creates an instance of RoleAssignmentScheduleRequestProperties class.

Method Summary

Modifier and Type Method and Description
String approvalId()

Get the approvalId property: The approvalId of the role assignment 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 assignment schedule request was created.

ExpandedProperties expandedProperties()

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

static RoleAssignmentScheduleRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentScheduleRequestProperties from the JsonReader.

String justification()

Get the justification property: Justification for the role assignment.

String linkedRoleEligibilityScheduleId()

Get the linkedRoleEligibilityScheduleId property: The linked role eligibility schedule id - to activate an 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.

RoleAssignmentScheduleRequestPropertiesScheduleInfo scheduleInfo()

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

String scope()

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

Status status()

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

String targetRoleAssignmentScheduleId()

Get the targetRoleAssignmentScheduleId property: The resultant role assignment schedule id or the role assignment schedule id being updated.

String targetRoleAssignmentScheduleInstanceId()

Get the targetRoleAssignmentScheduleInstanceId property: The role assignment schedule instance id being updated.

RoleAssignmentScheduleRequestPropertiesTicketInfo ticketInfo()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleAssignmentScheduleRequestProperties withCondition(String condition)

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

RoleAssignmentScheduleRequestProperties withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

RoleAssignmentScheduleRequestProperties withJustification(String justification)

Set the justification property: Justification for the role assignment.

RoleAssignmentScheduleRequestProperties withLinkedRoleEligibilityScheduleId(String linkedRoleEligibilityScheduleId)

Set the linkedRoleEligibilityScheduleId property: The linked role eligibility schedule id - to activate an eligibility.

RoleAssignmentScheduleRequestProperties withPrincipalId(String principalId)

Set the principalId property: The principal ID.

RoleAssignmentScheduleRequestProperties withRequestType(RequestType requestType)

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

RoleAssignmentScheduleRequestProperties withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

RoleAssignmentScheduleRequestProperties withScheduleInfo(RoleAssignmentScheduleRequestPropertiesScheduleInfo scheduleInfo)

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

RoleAssignmentScheduleRequestProperties withTargetRoleAssignmentScheduleId(String targetRoleAssignmentScheduleId)

Set the targetRoleAssignmentScheduleId property: The resultant role assignment schedule id or the role assignment schedule id being updated.

RoleAssignmentScheduleRequestProperties withTargetRoleAssignmentScheduleInstanceId(String targetRoleAssignmentScheduleInstanceId)

Set the targetRoleAssignmentScheduleInstanceId property: The role assignment schedule instance id being updated.

RoleAssignmentScheduleRequestProperties withTicketInfo(RoleAssignmentScheduleRequestPropertiesTicketInfo ticketInfo)

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

Methods inherited from java.lang.Object

Constructor Details

RoleAssignmentScheduleRequestProperties

public RoleAssignmentScheduleRequestProperties()

Creates an instance of RoleAssignmentScheduleRequestProperties class.

Method Details

approvalId

public String approvalId()

Get the approvalId property: The approvalId of the role assignment 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 assignment 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 RoleAssignmentScheduleRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentScheduleRequestProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleAssignmentScheduleRequestProperties 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 assignment.

Returns:

the justification value.

linkedRoleEligibilityScheduleId

public String linkedRoleEligibilityScheduleId()

Get the linkedRoleEligibilityScheduleId property: The linked role eligibility schedule id - to activate an eligibility.

Returns:

the linkedRoleEligibilityScheduleId 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 RoleAssignmentScheduleRequestPropertiesScheduleInfo scheduleInfo()

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

Returns:

the scheduleInfo value.

scope

public String scope()

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

Returns:

the scope value.

status

public Status status()

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

Returns:

the status value.

targetRoleAssignmentScheduleId

public String targetRoleAssignmentScheduleId()

Get the targetRoleAssignmentScheduleId property: The resultant role assignment schedule id or the role assignment schedule id being updated.

Returns:

the targetRoleAssignmentScheduleId value.

targetRoleAssignmentScheduleInstanceId

public String targetRoleAssignmentScheduleInstanceId()

Get the targetRoleAssignmentScheduleInstanceId property: The role assignment schedule instance id being updated.

Returns:

the targetRoleAssignmentScheduleInstanceId value.

ticketInfo

public RoleAssignmentScheduleRequestPropertiesTicketInfo ticketInfo()

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

Returns:

the ticketInfo value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCondition

public RoleAssignmentScheduleRequestProperties 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 RoleAssignmentScheduleRequestProperties object itself.

withConditionVersion

public RoleAssignmentScheduleRequestProperties 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 RoleAssignmentScheduleRequestProperties object itself.

withJustification

public RoleAssignmentScheduleRequestProperties withJustification(String justification)

Set the justification property: Justification for the role assignment.

Parameters:

justification - the justification value to set.

Returns:

the RoleAssignmentScheduleRequestProperties object itself.

withLinkedRoleEligibilityScheduleId

public RoleAssignmentScheduleRequestProperties withLinkedRoleEligibilityScheduleId(String linkedRoleEligibilityScheduleId)

Set the linkedRoleEligibilityScheduleId property: The linked role eligibility schedule id - to activate an eligibility.

Parameters:

linkedRoleEligibilityScheduleId - the linkedRoleEligibilityScheduleId value to set.

Returns:

the RoleAssignmentScheduleRequestProperties object itself.

withPrincipalId

public RoleAssignmentScheduleRequestProperties withPrincipalId(String principalId)

Set the principalId property: The principal ID.

Parameters:

principalId - the principalId value to set.

Returns:

the RoleAssignmentScheduleRequestProperties object itself.

withRequestType

public RoleAssignmentScheduleRequestProperties 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 RoleAssignmentScheduleRequestProperties object itself.

withRoleDefinitionId

public RoleAssignmentScheduleRequestProperties withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

Parameters:

roleDefinitionId - the roleDefinitionId value to set.

Returns:

the RoleAssignmentScheduleRequestProperties object itself.

withScheduleInfo

public RoleAssignmentScheduleRequestProperties withScheduleInfo(RoleAssignmentScheduleRequestPropertiesScheduleInfo scheduleInfo)

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

Parameters:

scheduleInfo - the scheduleInfo value to set.

Returns:

the RoleAssignmentScheduleRequestProperties object itself.

withTargetRoleAssignmentScheduleId

public RoleAssignmentScheduleRequestProperties withTargetRoleAssignmentScheduleId(String targetRoleAssignmentScheduleId)

Set the targetRoleAssignmentScheduleId property: The resultant role assignment schedule id or the role assignment schedule id being updated.

Parameters:

targetRoleAssignmentScheduleId - the targetRoleAssignmentScheduleId value to set.

Returns:

the RoleAssignmentScheduleRequestProperties object itself.

withTargetRoleAssignmentScheduleInstanceId

public RoleAssignmentScheduleRequestProperties withTargetRoleAssignmentScheduleInstanceId(String targetRoleAssignmentScheduleInstanceId)

Set the targetRoleAssignmentScheduleInstanceId property: The role assignment schedule instance id being updated.

Parameters:

targetRoleAssignmentScheduleInstanceId - the targetRoleAssignmentScheduleInstanceId value to set.

Returns:

the RoleAssignmentScheduleRequestProperties object itself.

withTicketInfo

public RoleAssignmentScheduleRequestProperties withTicketInfo(RoleAssignmentScheduleRequestPropertiesTicketInfo ticketInfo)

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

Parameters:

ticketInfo - the ticketInfo value to set.

Returns:

the RoleAssignmentScheduleRequestProperties object itself.

Applies to