Partilhar via


RoleAssignmentScheduleInner Class

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

Implements

public final class RoleAssignmentScheduleInner
implements JsonSerializable<RoleAssignmentScheduleInner>

Role Assignment schedule.

Constructor Summary

Constructor Description
RoleAssignmentScheduleInner()

Creates an instance of RoleAssignmentScheduleInner 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: End DateTime when role assignment schedule.

ExpandedProperties expandedProperties()

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

static RoleAssignmentScheduleInner fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentScheduleInner from the JsonReader.

String id()

Get the id property: The role assignment schedule Id.

String linkedRoleEligibilityScheduleId()

Get the linkedRoleEligibilityScheduleId property: The id of roleEligibilitySchedule used to activated this roleAssignmentSchedule.

MemberType memberType()

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

String name()

Get the name property: The role assignment schedule 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 roleAssignmentScheduleRequestId()

Get the roleAssignmentScheduleRequestId property: The id of roleAssignmentScheduleRequest used to create this roleAssignmentSchedule.

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: Start DateTime when role assignment schedule.

Status status()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The role assignment schedule type.

OffsetDateTime updatedOn()

Get the updatedOn property: DateTime when role assignment schedule was modified.

void validate()

Validates the instance.

RoleAssignmentScheduleInner withAssignmentType(AssignmentType assignmentType)

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

RoleAssignmentScheduleInner withCondition(String condition)

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

RoleAssignmentScheduleInner withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

RoleAssignmentScheduleInner withCreatedOn(OffsetDateTime createdOn)

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

RoleAssignmentScheduleInner withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: End DateTime when role assignment schedule.

RoleAssignmentScheduleInner withExpandedProperties(ExpandedProperties expandedProperties)

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

RoleAssignmentScheduleInner withLinkedRoleEligibilityScheduleId(String linkedRoleEligibilityScheduleId)

Set the linkedRoleEligibilityScheduleId property: The id of roleEligibilitySchedule used to activated this roleAssignmentSchedule.

RoleAssignmentScheduleInner withMemberType(MemberType memberType)

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

RoleAssignmentScheduleInner withPrincipalId(String principalId)

Set the principalId property: The principal ID.

RoleAssignmentScheduleInner withPrincipalType(PrincipalType principalType)

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

RoleAssignmentScheduleInner withRoleAssignmentScheduleRequestId(String roleAssignmentScheduleRequestId)

Set the roleAssignmentScheduleRequestId property: The id of roleAssignmentScheduleRequest used to create this roleAssignmentSchedule.

RoleAssignmentScheduleInner withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

RoleAssignmentScheduleInner withScope(String scope)

Set the scope property: The role assignment schedule scope.

RoleAssignmentScheduleInner withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: Start DateTime when role assignment schedule.

RoleAssignmentScheduleInner withStatus(Status status)

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

RoleAssignmentScheduleInner withUpdatedOn(OffsetDateTime updatedOn)

Set the updatedOn property: DateTime when role assignment schedule was modified.

Methods inherited from java.lang.Object

Constructor Details

RoleAssignmentScheduleInner

public RoleAssignmentScheduleInner()

Creates an instance of RoleAssignmentScheduleInner 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: End DateTime when role assignment schedule.

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 RoleAssignmentScheduleInner fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentScheduleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The role assignment schedule Id.

Returns:

the id value.

linkedRoleEligibilityScheduleId

public String linkedRoleEligibilityScheduleId()

Get the linkedRoleEligibilityScheduleId property: The id of roleEligibilitySchedule used to activated this roleAssignmentSchedule.

Returns:

the linkedRoleEligibilityScheduleId value.

memberType

public MemberType memberType()

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

Returns:

the memberType value.

name

public String name()

Get the name property: The role assignment schedule 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.

roleAssignmentScheduleRequestId

public String roleAssignmentScheduleRequestId()

Get the roleAssignmentScheduleRequestId property: The id of roleAssignmentScheduleRequest used to create this roleAssignmentSchedule.

Returns:

the roleAssignmentScheduleRequestId 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: Start DateTime when role assignment schedule.

Returns:

the startDateTime value.

status

public Status status()

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

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The role assignment schedule type.

Returns:

the type value.

updatedOn

public OffsetDateTime updatedOn()

Get the updatedOn property: DateTime when role assignment schedule was modified.

Returns:

the updatedOn value.

validate

public void validate()

Validates the instance.

withAssignmentType

public RoleAssignmentScheduleInner withAssignmentType(AssignmentType assignmentType)

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

Parameters:

assignmentType - the assignmentType value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withCondition

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

withConditionVersion

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

withCreatedOn

public RoleAssignmentScheduleInner withCreatedOn(OffsetDateTime createdOn)

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

Parameters:

createdOn - the createdOn value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withEndDateTime

public RoleAssignmentScheduleInner withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: End DateTime when role assignment schedule.

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withExpandedProperties

public RoleAssignmentScheduleInner withExpandedProperties(ExpandedProperties expandedProperties)

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

Parameters:

expandedProperties - the expandedProperties value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withLinkedRoleEligibilityScheduleId

public RoleAssignmentScheduleInner withLinkedRoleEligibilityScheduleId(String linkedRoleEligibilityScheduleId)

Set the linkedRoleEligibilityScheduleId property: The id of roleEligibilitySchedule used to activated this roleAssignmentSchedule.

Parameters:

linkedRoleEligibilityScheduleId - the linkedRoleEligibilityScheduleId value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withMemberType

public RoleAssignmentScheduleInner withMemberType(MemberType memberType)

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

Parameters:

memberType - the memberType value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withPrincipalId

public RoleAssignmentScheduleInner withPrincipalId(String principalId)

Set the principalId property: The principal ID.

Parameters:

principalId - the principalId value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withPrincipalType

public RoleAssignmentScheduleInner withPrincipalType(PrincipalType principalType)

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

Parameters:

principalType - the principalType value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withRoleAssignmentScheduleRequestId

public RoleAssignmentScheduleInner withRoleAssignmentScheduleRequestId(String roleAssignmentScheduleRequestId)

Set the roleAssignmentScheduleRequestId property: The id of roleAssignmentScheduleRequest used to create this roleAssignmentSchedule.

Parameters:

roleAssignmentScheduleRequestId - the roleAssignmentScheduleRequestId value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withRoleDefinitionId

public RoleAssignmentScheduleInner withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

Parameters:

roleDefinitionId - the roleDefinitionId value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withScope

public RoleAssignmentScheduleInner withScope(String scope)

Set the scope property: The role assignment schedule scope.

Parameters:

scope - the scope value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withStartDateTime

public RoleAssignmentScheduleInner withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: Start DateTime when role assignment schedule.

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withStatus

public RoleAssignmentScheduleInner withStatus(Status status)

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

Parameters:

status - the status value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

withUpdatedOn

public RoleAssignmentScheduleInner withUpdatedOn(OffsetDateTime updatedOn)

Set the updatedOn property: DateTime when role assignment schedule was modified.

Parameters:

updatedOn - the updatedOn value to set.

Returns:

the RoleAssignmentScheduleInner object itself.

Applies to