public static interface PolicyVersion.Builder extends CopyableBuilder<PolicyVersion.Builder,PolicyVersion>
Modifier and Type | Method and Description |
---|---|
PolicyVersion.Builder |
createDate(Instant createDate)
The date and time, in ISO 8601 date-time format, when the policy
version was created.
|
PolicyVersion.Builder |
document(String document)
The policy document.
|
PolicyVersion.Builder |
isDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is set as the policy's default version.
|
PolicyVersion.Builder |
versionId(String versionId)
The identifier for the policy version.
|
copy
apply, build
PolicyVersion.Builder document(String document)
The policy document.
The policy document is returned in the response to the GetPolicyVersion and GetAccountAuthorizationDetails operations. It is not returned in the response to the CreatePolicyVersion or ListPolicyVersions operations.
document
- The policy document.
The policy document is returned in the response to the GetPolicyVersion and GetAccountAuthorizationDetails operations. It is not returned in the response to the CreatePolicyVersion or ListPolicyVersions operations.
PolicyVersion.Builder versionId(String versionId)
The identifier for the policy version.
Policy version identifiers always begin with v
(always lowercase). When a policy is created, the
first policy version is v1
.
versionId
- The identifier for the policy version.
Policy version identifiers always begin with v
(always lowercase). When a policy is
created, the first policy version is v1
.
PolicyVersion.Builder isDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is set as the policy's default version.
isDefaultVersion
- Specifies whether the policy version is set as the policy's default version.PolicyVersion.Builder createDate(Instant createDate)
The date and time, in ISO 8601 date-time format, when the policy version was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
policy version was created.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.