public static interface Policy.Builder extends SdkPojo, CopyableBuilder<Policy.Builder,Policy>
Modifier and Type | Method and Description |
---|---|
Policy.Builder |
arn(String arn)
Sets the value of the Arn property for this object.
|
Policy.Builder |
attachmentCount(Integer attachmentCount)
The number of entities (users, groups, and roles) that the policy is attached to.
|
Policy.Builder |
createDate(Instant createDate)
The date and time, in ISO 8601 date-time format, when the policy
was created.
|
Policy.Builder |
defaultVersionId(String defaultVersionId)
The identifier for the version of the policy that is set as the default version.
|
Policy.Builder |
description(String description)
A friendly description of the policy.
|
Policy.Builder |
isAttachable(Boolean isAttachable)
Specifies whether the policy can be attached to an IAM user, group, or role.
|
Policy.Builder |
path(String path)
The path to the policy.
|
Policy.Builder |
permissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of entities (users and roles) for which the policy is used to set the permissions boundary.
|
Policy.Builder |
policyId(String policyId)
The stable and unique string identifying the policy.
|
Policy.Builder |
policyName(String policyName)
The friendly name (not ARN) identifying the policy.
|
Policy.Builder |
updateDate(Instant updateDate)
The date and time, in ISO 8601 date-time format, when the policy
was last updated.
|
copy
applyMutation, build
Policy.Builder policyName(String policyName)
The friendly name (not ARN) identifying the policy.
policyName
- The friendly name (not ARN) identifying the policy.Policy.Builder policyId(String policyId)
The stable and unique string identifying the policy.
For more information about IDs, see IAM Identifiers in the Using IAM guide.
policyId
- The stable and unique string identifying the policy.
For more information about IDs, see IAM Identifiers in the Using IAM guide.
Policy.Builder arn(String arn)
arn
- The new value for the Arn property for this object.Policy.Builder path(String path)
The path to the policy.
For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the policy.
For more information about paths, see IAM Identifiers in the Using IAM guide.
Policy.Builder defaultVersionId(String defaultVersionId)
The identifier for the version of the policy that is set as the default version.
defaultVersionId
- The identifier for the version of the policy that is set as the default version.Policy.Builder attachmentCount(Integer attachmentCount)
The number of entities (users, groups, and roles) that the policy is attached to.
attachmentCount
- The number of entities (users, groups, and roles) that the policy is attached to.Policy.Builder permissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of entities (users and roles) for which the policy is used to set the permissions boundary.
For more information about permissions boundaries, see Permissions Boundaries for IAM Identities in the IAM User Guide.
permissionsBoundaryUsageCount
- The number of entities (users and roles) for which the policy is used to set the permissions boundary.
For more information about permissions boundaries, see Permissions Boundaries for IAM Identities in the IAM User Guide.
Policy.Builder isAttachable(Boolean isAttachable)
Specifies whether the policy can be attached to an IAM user, group, or role.
isAttachable
- Specifies whether the policy can be attached to an IAM user, group, or role.Policy.Builder description(String description)
A friendly description of the policy.
This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.
description
- A friendly description of the policy.
This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.
Policy.Builder createDate(Instant createDate)
The date and time, in ISO 8601 date-time format, when the policy was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
policy was created.Policy.Builder updateDate(Instant updateDate)
The date and time, in ISO 8601 date-time format, when the policy was last updated.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
updateDate
- The date and time, in ISO 8601 date-time format, when the
policy was last updated.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.