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

RoleEligibilityScheduleInstanceProperties Class

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

Implements

public final class RoleEligibilityScheduleInstanceProperties
implements JsonSerializable<RoleEligibilityScheduleInstanceProperties>

Role eligibility schedule properties with scope.

Constructor Summary

Constructor Description
RoleEligibilityScheduleInstanceProperties()

Creates an instance of RoleEligibilityScheduleInstanceProperties class.

Method Summary

Modifier and Type Method and Description
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 was created.

OffsetDateTime endDateTime()

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

ExpandedProperties expandedProperties()

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

static RoleEligibilityScheduleInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleInstanceProperties from the JsonReader.

MemberType memberType()

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

String principalId()

Get the principalId property: The principal ID.

PrincipalType principalType()

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

String roleDefinitionId()

Get the roleDefinitionId property: The role definition ID.

String roleEligibilityScheduleId()

Get the roleEligibilityScheduleId property: Id of the master role eligibility schedule.

String scope()

Get the scope property: The role eligibility schedule scope.

OffsetDateTime startDateTime()

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

Status status()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleEligibilityScheduleInstanceProperties withCondition(String condition)

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

RoleEligibilityScheduleInstanceProperties withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

RoleEligibilityScheduleInstanceProperties withCreatedOn(OffsetDateTime createdOn)

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

RoleEligibilityScheduleInstanceProperties withEndDateTime(OffsetDateTime endDateTime)

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

RoleEligibilityScheduleInstanceProperties withExpandedProperties(ExpandedProperties expandedProperties)

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

RoleEligibilityScheduleInstanceProperties withMemberType(MemberType memberType)

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

RoleEligibilityScheduleInstanceProperties withPrincipalId(String principalId)

Set the principalId property: The principal ID.

RoleEligibilityScheduleInstanceProperties withPrincipalType(PrincipalType principalType)

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

RoleEligibilityScheduleInstanceProperties withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

RoleEligibilityScheduleInstanceProperties withRoleEligibilityScheduleId(String roleEligibilityScheduleId)

Set the roleEligibilityScheduleId property: Id of the master role eligibility schedule.

RoleEligibilityScheduleInstanceProperties withScope(String scope)

Set the scope property: The role eligibility schedule scope.

RoleEligibilityScheduleInstanceProperties withStartDateTime(OffsetDateTime startDateTime)

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

RoleEligibilityScheduleInstanceProperties withStatus(Status status)

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

Methods inherited from java.lang.Object

Constructor Details

RoleEligibilityScheduleInstanceProperties

public RoleEligibilityScheduleInstanceProperties()

Creates an instance of RoleEligibilityScheduleInstanceProperties class.

Method Details

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

Returns:

the createdOn value.

endDateTime

public OffsetDateTime endDateTime()

Get the endDateTime property: The endDateTime of the role eligibility 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 RoleEligibilityScheduleInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleInstanceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

memberType

public MemberType memberType()

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

Returns:

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

roleDefinitionId

public String roleDefinitionId()

Get the roleDefinitionId property: The role definition ID.

Returns:

the roleDefinitionId value.

roleEligibilityScheduleId

public String roleEligibilityScheduleId()

Get the roleEligibilityScheduleId property: Id of the master role eligibility schedule.

Returns:

the roleEligibilityScheduleId value.

scope

public String scope()

Get the scope property: The role eligibility schedule scope.

Returns:

the scope value.

startDateTime

public OffsetDateTime startDateTime()

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

Returns:

the startDateTime value.

status

public Status status()

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

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCondition

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

withConditionVersion

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

withCreatedOn

public RoleEligibilityScheduleInstanceProperties withCreatedOn(OffsetDateTime createdOn)

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

Parameters:

createdOn - the createdOn value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withEndDateTime

public RoleEligibilityScheduleInstanceProperties withEndDateTime(OffsetDateTime endDateTime)

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

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withExpandedProperties

public RoleEligibilityScheduleInstanceProperties withExpandedProperties(ExpandedProperties expandedProperties)

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

Parameters:

expandedProperties - the expandedProperties value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withMemberType

public RoleEligibilityScheduleInstanceProperties withMemberType(MemberType memberType)

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

Parameters:

memberType - the memberType value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withPrincipalId

public RoleEligibilityScheduleInstanceProperties withPrincipalId(String principalId)

Set the principalId property: The principal ID.

Parameters:

principalId - the principalId value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withPrincipalType

public RoleEligibilityScheduleInstanceProperties withPrincipalType(PrincipalType principalType)

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

Parameters:

principalType - the principalType value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withRoleDefinitionId

public RoleEligibilityScheduleInstanceProperties withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

Parameters:

roleDefinitionId - the roleDefinitionId value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withRoleEligibilityScheduleId

public RoleEligibilityScheduleInstanceProperties withRoleEligibilityScheduleId(String roleEligibilityScheduleId)

Set the roleEligibilityScheduleId property: Id of the master role eligibility schedule.

Parameters:

roleEligibilityScheduleId - the roleEligibilityScheduleId value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withScope

public RoleEligibilityScheduleInstanceProperties withScope(String scope)

Set the scope property: The role eligibility schedule scope.

Parameters:

scope - the scope value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withStartDateTime

public RoleEligibilityScheduleInstanceProperties withStartDateTime(OffsetDateTime startDateTime)

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

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

withStatus

public RoleEligibilityScheduleInstanceProperties withStatus(Status status)

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

Parameters:

status - the status value to set.

Returns:

the RoleEligibilityScheduleInstanceProperties object itself.

Applies to