Interface ManagedPolicyDetail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ManagedPolicyDetail.Builder,ManagedPolicyDetail>,SdkBuilder<ManagedPolicyDetail.Builder,ManagedPolicyDetail>,SdkPojo
- Enclosing class:
- ManagedPolicyDetail
@Mutable @NotThreadSafe public static interface ManagedPolicyDetail.Builder extends SdkPojo, CopyableBuilder<ManagedPolicyDetail.Builder,ManagedPolicyDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedPolicyDetail.Builderarn(String arn)Sets the value of the Arn property for this object.ManagedPolicyDetail.BuilderattachmentCount(Integer attachmentCount)The number of principal entities (users, groups, and roles) that the policy is attached to.ManagedPolicyDetail.BuildercreateDate(Instant createDate)The date and time, in ISO 8601 date-time format, when the policy was created.ManagedPolicyDetail.BuilderdefaultVersionId(String defaultVersionId)The identifier for the version of the policy that is set as the default (operative) version.ManagedPolicyDetail.Builderdescription(String description)A friendly description of the policy.ManagedPolicyDetail.BuilderisAttachable(Boolean isAttachable)Specifies whether the policy can be attached to an IAM user, group, or role.ManagedPolicyDetail.Builderpath(String path)The path to the policy.ManagedPolicyDetail.BuilderpermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)The number of entities (users and roles) for which the policy is used as the permissions boundary.ManagedPolicyDetail.BuilderpolicyId(String policyId)The stable and unique string identifying the policy.ManagedPolicyDetail.BuilderpolicyName(String policyName)The friendly name (not ARN) identifying the policy.ManagedPolicyDetail.BuilderpolicyVersionList(Collection<PolicyVersion> policyVersionList)A list containing information about the versions of the policy.ManagedPolicyDetail.BuilderpolicyVersionList(Consumer<PolicyVersion.Builder>... policyVersionList)A list containing information about the versions of the policy.ManagedPolicyDetail.BuilderpolicyVersionList(PolicyVersion... policyVersionList)A list containing information about the versions of the policy.ManagedPolicyDetail.BuilderupdateDate(Instant updateDate)The date and time, in ISO 8601 date-time format, when the policy was last updated.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
policyName
ManagedPolicyDetail.Builder policyName(String policyName)
The friendly name (not ARN) identifying the policy.
- Parameters:
policyName- The friendly name (not ARN) identifying the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyId
ManagedPolicyDetail.Builder policyId(String policyId)
The stable and unique string identifying the policy.
For more information about IDs, see IAM identifiers in the IAM User Guide.
- Parameters:
policyId- The stable and unique string identifying the policy.For more information about IDs, see IAM identifiers in the IAM User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
ManagedPolicyDetail.Builder arn(String arn)
Sets the value of the Arn property for this object.- Parameters:
arn- The new value for the Arn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
ManagedPolicyDetail.Builder path(String path)
The path to the policy.
For more information about paths, see IAM identifiers in the IAM User Guide.
- Parameters:
path- The path to the policy.For more information about paths, see IAM identifiers in the IAM User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultVersionId
ManagedPolicyDetail.Builder defaultVersionId(String defaultVersionId)
The identifier for the version of the policy that is set as the default (operative) version.
For more information about policy versions, see Versioning for managed policies in the IAM User Guide.
- Parameters:
defaultVersionId- The identifier for the version of the policy that is set as the default (operative) version.For more information about policy versions, see Versioning for managed policies in the IAM User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachmentCount
ManagedPolicyDetail.Builder attachmentCount(Integer attachmentCount)
The number of principal entities (users, groups, and roles) that the policy is attached to.
- Parameters:
attachmentCount- The number of principal entities (users, groups, and roles) that the policy is attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionsBoundaryUsageCount
ManagedPolicyDetail.Builder permissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of entities (users and roles) for which the policy is used as the permissions boundary.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
- Parameters:
permissionsBoundaryUsageCount- The number of entities (users and roles) for which the policy is used as the permissions boundary.For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAttachable
ManagedPolicyDetail.Builder isAttachable(Boolean isAttachable)
Specifies whether the policy can be attached to an IAM user, group, or role.
- Parameters:
isAttachable- Specifies whether the policy can be attached to an IAM user, group, or role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
ManagedPolicyDetail.Builder description(String description)
A friendly description of the policy.
- Parameters:
description- A friendly description of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createDate
ManagedPolicyDetail.Builder createDate(Instant createDate)
The date and time, in ISO 8601 date-time format, when the policy was created.
- Parameters:
createDate- The date and time, in ISO 8601 date-time format, when the policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateDate
ManagedPolicyDetail.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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyVersionList
ManagedPolicyDetail.Builder policyVersionList(Collection<PolicyVersion> policyVersionList)
A list containing information about the versions of the policy.
- Parameters:
policyVersionList- A list containing information about the versions of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyVersionList
ManagedPolicyDetail.Builder policyVersionList(PolicyVersion... policyVersionList)
A list containing information about the versions of the policy.
- Parameters:
policyVersionList- A list containing information about the versions of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyVersionList
ManagedPolicyDetail.Builder policyVersionList(Consumer<PolicyVersion.Builder>... policyVersionList)
A list containing information about the versions of the policy.
This is a convenience method that creates an instance of thePolicyVersion.Builderavoiding the need to create one manually viaPolicyVersion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#policyVersionList(List.) - Parameters:
policyVersionList- a consumer that will call methods onPolicyVersion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#policyVersionList(java.util.Collection)
-
-