RoleEligibilityScheduleInstanceInner Class

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

Implements

public final class RoleEligibilityScheduleInstanceInner
implements JsonSerializable<RoleEligibilityScheduleInstanceInner>

Information about current or upcoming role eligibility schedule instance.

Constructor Summary

Constructor Description
RoleEligibilityScheduleInstanceInner()

Creates an instance of RoleEligibilityScheduleInstanceInner 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 RoleEligibilityScheduleInstanceInner fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleInstanceInner from the JsonReader.

String id()

Get the id property: The role eligibility schedule instance ID.

MemberType memberType()

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

String name()

Get the name property: The role eligibility schedule instance name.

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)
String type()

Get the type property: The role eligibility schedule instance type.

void validate()

Validates the instance.

RoleEligibilityScheduleInstanceInner withCondition(String condition)

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

RoleEligibilityScheduleInstanceInner withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

RoleEligibilityScheduleInstanceInner withCreatedOn(OffsetDateTime createdOn)

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

RoleEligibilityScheduleInstanceInner withEndDateTime(OffsetDateTime endDateTime)

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

RoleEligibilityScheduleInstanceInner withExpandedProperties(ExpandedProperties expandedProperties)

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

RoleEligibilityScheduleInstanceInner withMemberType(MemberType memberType)

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

RoleEligibilityScheduleInstanceInner withPrincipalId(String principalId)

Set the principalId property: The principal ID.

RoleEligibilityScheduleInstanceInner withPrincipalType(PrincipalType principalType)

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

RoleEligibilityScheduleInstanceInner withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

RoleEligibilityScheduleInstanceInner withRoleEligibilityScheduleId(String roleEligibilityScheduleId)

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

RoleEligibilityScheduleInstanceInner withScope(String scope)

Set the scope property: The role eligibility schedule scope.

RoleEligibilityScheduleInstanceInner withStartDateTime(OffsetDateTime startDateTime)

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

RoleEligibilityScheduleInstanceInner withStatus(Status status)

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

Methods inherited from java.lang.Object

Constructor Details

RoleEligibilityScheduleInstanceInner

public RoleEligibilityScheduleInstanceInner()

Creates an instance of RoleEligibilityScheduleInstanceInner 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 RoleEligibilityScheduleInstanceInner fromJson(JsonReader jsonReader)

Reads an instance of RoleEligibilityScheduleInstanceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The role eligibility schedule instance ID.

Returns:

the id value.

memberType

public MemberType memberType()

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

Returns:

the memberType value.

name

public String name()

Get the name property: The role eligibility schedule instance name.

Returns:

the name 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:

type

public String type()

Get the type property: The role eligibility schedule instance type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCondition

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

withConditionVersion

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

withCreatedOn

public RoleEligibilityScheduleInstanceInner withCreatedOn(OffsetDateTime createdOn)

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

Parameters:

createdOn - the createdOn value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withEndDateTime

public RoleEligibilityScheduleInstanceInner withEndDateTime(OffsetDateTime endDateTime)

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

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withExpandedProperties

public RoleEligibilityScheduleInstanceInner withExpandedProperties(ExpandedProperties expandedProperties)

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

Parameters:

expandedProperties - the expandedProperties value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withMemberType

public RoleEligibilityScheduleInstanceInner withMemberType(MemberType memberType)

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

Parameters:

memberType - the memberType value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withPrincipalId

public RoleEligibilityScheduleInstanceInner withPrincipalId(String principalId)

Set the principalId property: The principal ID.

Parameters:

principalId - the principalId value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withPrincipalType

public RoleEligibilityScheduleInstanceInner withPrincipalType(PrincipalType principalType)

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

Parameters:

principalType - the principalType value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withRoleDefinitionId

public RoleEligibilityScheduleInstanceInner withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

Parameters:

roleDefinitionId - the roleDefinitionId value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withRoleEligibilityScheduleId

public RoleEligibilityScheduleInstanceInner withRoleEligibilityScheduleId(String roleEligibilityScheduleId)

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

Parameters:

roleEligibilityScheduleId - the roleEligibilityScheduleId value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withScope

public RoleEligibilityScheduleInstanceInner withScope(String scope)

Set the scope property: The role eligibility schedule scope.

Parameters:

scope - the scope value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withStartDateTime

public RoleEligibilityScheduleInstanceInner withStartDateTime(OffsetDateTime startDateTime)

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

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

withStatus

public RoleEligibilityScheduleInstanceInner withStatus(Status status)

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

Parameters:

status - the status value to set.

Returns:

the RoleEligibilityScheduleInstanceInner object itself.

Applies to