Interface PolicyVersion.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyVersion.Builder,PolicyVersion>,SdkBuilder<PolicyVersion.Builder,PolicyVersion>,SdkPojo
- Enclosing class:
- PolicyVersion
public static interface PolicyVersion.Builder extends SdkPojo, CopyableBuilder<PolicyVersion.Builder,PolicyVersion>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PolicyVersion.BuildercreateDate(Instant createDate)The date and time, in ISO 8601 date-time format, when the policy version was created.PolicyVersion.Builderdocument(String document)The policy document.PolicyVersion.BuilderisDefaultVersion(Boolean isDefaultVersion)Specifies whether the policy version is set as the policy's default version.PolicyVersion.BuilderversionId(String versionId)The identifier for the policy version.-
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, sdkFields
-
-
-
-
Method Detail
-
document
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.
The policy document returned in this structure is URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the
decodemethod of thejava.net.URLDecoderutility class in the Java SDK. Other languages and SDKs provide similar functionality.- Parameters:
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 returned in this structure is URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the
decodemethod of thejava.net.URLDecoderutility class in the Java SDK. Other languages and SDKs provide similar functionality.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionId
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 isv1.- Parameters:
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 isv1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDefaultVersion
PolicyVersion.Builder isDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is set as the policy's default version.
- Parameters:
isDefaultVersion- Specifies whether the policy version is set as the policy's default version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createDate
PolicyVersion.Builder createDate(Instant createDate)
The date and time, in ISO 8601 date-time format, when the policy version was created.
- Parameters:
createDate- The date and time, in ISO 8601 date-time format, when the policy version was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-