@Generated(value="software.amazon.awssdk:codegen") public final class PolicyVersion extends Object implements ToCopyableBuilder<PolicyVersion.Builder,PolicyVersion>
Contains information about a version of a managed policy.
This data type is used as a response element in the CreatePolicyVersion, GetPolicyVersion, ListPolicyVersions, and GetAccountAuthorizationDetails actions.
For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.
Modifier and Type | Class and Description |
---|---|
static interface |
PolicyVersion.Builder |
Modifier and Type | Method and Description |
---|---|
static PolicyVersion.Builder |
builder() |
Instant |
createDate()
The date and time, in ISO 8601 date-time format, when the policy
version was created.
|
String |
document()
The policy document.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
isDefaultVersion()
Specifies whether the policy version is set as the policy's default version.
|
static Class<? extends PolicyVersion.Builder> |
serializableBuilderClass() |
PolicyVersion.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
versionId()
The identifier for the policy version.
|
copy
public 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.
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.
public 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
.
Policy version identifiers always begin with v
(always lowercase). When a policy is created,
the first policy version is v1
.
public Boolean isDefaultVersion()
Specifies whether the policy version is set as the policy's default version.
public Instant createDate()
The date and time, in ISO 8601 date-time format, when the policy version was created.
public PolicyVersion.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PolicyVersion.Builder,PolicyVersion>
public static PolicyVersion.Builder builder()
public static Class<? extends PolicyVersion.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.