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

RoleAssignmentScheduleInstanceProperties Class

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

Implements

public final class RoleAssignmentScheduleInstanceProperties
implements JsonSerializable<RoleAssignmentScheduleInstanceProperties>

Role assignment schedule properties with scope.

Constructor Summary

Constructor Description
RoleAssignmentScheduleInstanceProperties()

Creates an instance of RoleAssignmentScheduleInstanceProperties class.

Method Summary

Modifier and Type Method and Description
AssignmentType assignmentType()

Get the assignmentType property: Assignment type of the role assignment schedule.

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 was created.

OffsetDateTime endDateTime()

Get the endDateTime property: The endDateTime of the role assignment schedule instance.

ExpandedProperties expandedProperties()

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

static RoleAssignmentScheduleInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentScheduleInstanceProperties from the JsonReader.

String linkedRoleEligibilityScheduleId()

Get the linkedRoleEligibilityScheduleId property: roleEligibilityScheduleId used to activate.

String linkedRoleEligibilityScheduleInstanceId()

Get the linkedRoleEligibilityScheduleInstanceId property: roleEligibilityScheduleInstanceId linked to this roleAssignmentScheduleInstance.

MemberType memberType()

Get the memberType property: Membership type of the role assignment schedule.

String originRoleAssignmentId()

Get the originRoleAssignmentId property: Role Assignment Id in external system.

String principalId()

Get the principalId property: The principal ID.

PrincipalType principalType()

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

String roleAssignmentScheduleId()

Get the roleAssignmentScheduleId property: Id of the master role assignment schedule.

String roleDefinitionId()

Get the roleDefinitionId property: The role definition ID.

String scope()

Get the scope property: The role assignment schedule scope.

OffsetDateTime startDateTime()

Get the startDateTime property: The startDateTime of the role assignment schedule instance.

Status status()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleAssignmentScheduleInstanceProperties withAssignmentType(AssignmentType assignmentType)

Set the assignmentType property: Assignment type of the role assignment schedule.

RoleAssignmentScheduleInstanceProperties withCondition(String condition)

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

RoleAssignmentScheduleInstanceProperties withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

RoleAssignmentScheduleInstanceProperties withCreatedOn(OffsetDateTime createdOn)

Set the createdOn property: DateTime when role assignment schedule was created.

RoleAssignmentScheduleInstanceProperties withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The endDateTime of the role assignment schedule instance.

RoleAssignmentScheduleInstanceProperties withExpandedProperties(ExpandedProperties expandedProperties)

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

RoleAssignmentScheduleInstanceProperties withLinkedRoleEligibilityScheduleId(String linkedRoleEligibilityScheduleId)

Set the linkedRoleEligibilityScheduleId property: roleEligibilityScheduleId used to activate.

RoleAssignmentScheduleInstanceProperties withLinkedRoleEligibilityScheduleInstanceId(String linkedRoleEligibilityScheduleInstanceId)

Set the linkedRoleEligibilityScheduleInstanceId property: roleEligibilityScheduleInstanceId linked to this roleAssignmentScheduleInstance.

RoleAssignmentScheduleInstanceProperties withMemberType(MemberType memberType)

Set the memberType property: Membership type of the role assignment schedule.

RoleAssignmentScheduleInstanceProperties withOriginRoleAssignmentId(String originRoleAssignmentId)

Set the originRoleAssignmentId property: Role Assignment Id in external system.

RoleAssignmentScheduleInstanceProperties withPrincipalId(String principalId)

Set the principalId property: The principal ID.

RoleAssignmentScheduleInstanceProperties withPrincipalType(PrincipalType principalType)

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

RoleAssignmentScheduleInstanceProperties withRoleAssignmentScheduleId(String roleAssignmentScheduleId)

Set the roleAssignmentScheduleId property: Id of the master role assignment schedule.

RoleAssignmentScheduleInstanceProperties withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

RoleAssignmentScheduleInstanceProperties withScope(String scope)

Set the scope property: The role assignment schedule scope.

RoleAssignmentScheduleInstanceProperties withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The startDateTime of the role assignment schedule instance.

RoleAssignmentScheduleInstanceProperties withStatus(Status status)

Set the status property: The status of the role assignment schedule instance.

Methods inherited from java.lang.Object

Constructor Details

RoleAssignmentScheduleInstanceProperties

public RoleAssignmentScheduleInstanceProperties()

Creates an instance of RoleAssignmentScheduleInstanceProperties class.

Method Details

assignmentType

public AssignmentType assignmentType()

Get the assignmentType property: Assignment type of the role assignment schedule.

Returns:

the assignmentType 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 was created.

Returns:

the createdOn value.

endDateTime

public OffsetDateTime endDateTime()

Get the endDateTime property: The endDateTime of the role assignment schedule instance.

Returns:

the endDateTime value.

expandedProperties

public ExpandedProperties expandedProperties()

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

Returns:

the expandedProperties value.

fromJson

public static RoleAssignmentScheduleInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentScheduleInstanceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the RoleAssignmentScheduleInstanceProperties.

linkedRoleEligibilityScheduleId

public String linkedRoleEligibilityScheduleId()

Get the linkedRoleEligibilityScheduleId property: roleEligibilityScheduleId used to activate.

Returns:

the linkedRoleEligibilityScheduleId value.

linkedRoleEligibilityScheduleInstanceId

public String linkedRoleEligibilityScheduleInstanceId()

Get the linkedRoleEligibilityScheduleInstanceId property: roleEligibilityScheduleInstanceId linked to this roleAssignmentScheduleInstance.

Returns:

the linkedRoleEligibilityScheduleInstanceId value.

memberType

public MemberType memberType()

Get the memberType property: Membership type of the role assignment schedule.

Returns:

the memberType value.

originRoleAssignmentId

public String originRoleAssignmentId()

Get the originRoleAssignmentId property: Role Assignment Id in external system.

Returns:

the originRoleAssignmentId 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.

roleAssignmentScheduleId

public String roleAssignmentScheduleId()

Get the roleAssignmentScheduleId property: Id of the master role assignment schedule.

Returns:

the roleAssignmentScheduleId value.

roleDefinitionId

public String roleDefinitionId()

Get the roleDefinitionId property: The role definition ID.

Returns:

the roleDefinitionId value.

scope

public String scope()

Get the scope property: The role assignment schedule scope.

Returns:

the scope value.

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime property: The startDateTime of the role assignment schedule instance.

Returns:

the startDateTime value.

status

public Status status()

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

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAssignmentType

public RoleAssignmentScheduleInstanceProperties withAssignmentType(AssignmentType assignmentType)

Set the assignmentType property: Assignment type of the role assignment schedule.

Parameters:

assignmentType - the assignmentType value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withCondition

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

withConditionVersion

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

withCreatedOn

public RoleAssignmentScheduleInstanceProperties withCreatedOn(OffsetDateTime createdOn)

Set the createdOn property: DateTime when role assignment schedule was created.

Parameters:

createdOn - the createdOn value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withEndDateTime

public RoleAssignmentScheduleInstanceProperties withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The endDateTime of the role assignment schedule instance.

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withExpandedProperties

public RoleAssignmentScheduleInstanceProperties withExpandedProperties(ExpandedProperties expandedProperties)

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

Parameters:

expandedProperties - the expandedProperties value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withLinkedRoleEligibilityScheduleId

public RoleAssignmentScheduleInstanceProperties withLinkedRoleEligibilityScheduleId(String linkedRoleEligibilityScheduleId)

Set the linkedRoleEligibilityScheduleId property: roleEligibilityScheduleId used to activate.

Parameters:

linkedRoleEligibilityScheduleId - the linkedRoleEligibilityScheduleId value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withLinkedRoleEligibilityScheduleInstanceId

public RoleAssignmentScheduleInstanceProperties withLinkedRoleEligibilityScheduleInstanceId(String linkedRoleEligibilityScheduleInstanceId)

Set the linkedRoleEligibilityScheduleInstanceId property: roleEligibilityScheduleInstanceId linked to this roleAssignmentScheduleInstance.

Parameters:

linkedRoleEligibilityScheduleInstanceId - the linkedRoleEligibilityScheduleInstanceId value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withMemberType

public RoleAssignmentScheduleInstanceProperties withMemberType(MemberType memberType)

Set the memberType property: Membership type of the role assignment schedule.

Parameters:

memberType - the memberType value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withOriginRoleAssignmentId

public RoleAssignmentScheduleInstanceProperties withOriginRoleAssignmentId(String originRoleAssignmentId)

Set the originRoleAssignmentId property: Role Assignment Id in external system.

Parameters:

originRoleAssignmentId - the originRoleAssignmentId value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withPrincipalId

public RoleAssignmentScheduleInstanceProperties withPrincipalId(String principalId)

Set the principalId property: The principal ID.

Parameters:

principalId - the principalId value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withPrincipalType

public RoleAssignmentScheduleInstanceProperties withPrincipalType(PrincipalType principalType)

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

Parameters:

principalType - the principalType value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withRoleAssignmentScheduleId

public RoleAssignmentScheduleInstanceProperties withRoleAssignmentScheduleId(String roleAssignmentScheduleId)

Set the roleAssignmentScheduleId property: Id of the master role assignment schedule.

Parameters:

roleAssignmentScheduleId - the roleAssignmentScheduleId value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withRoleDefinitionId

public RoleAssignmentScheduleInstanceProperties withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

Parameters:

roleDefinitionId - the roleDefinitionId value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withScope

public RoleAssignmentScheduleInstanceProperties withScope(String scope)

Set the scope property: The role assignment schedule scope.

Parameters:

scope - the scope value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withStartDateTime

public RoleAssignmentScheduleInstanceProperties withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The startDateTime of the role assignment schedule instance.

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

withStatus

public RoleAssignmentScheduleInstanceProperties withStatus(Status status)

Set the status property: The status of the role assignment schedule instance.

Parameters:

status - the status value to set.

Returns:

the RoleAssignmentScheduleInstanceProperties object itself.

Applies to