@Generated(value="software.amazon.awssdk:codegen") public final class CreatePolicyVersionRequest extends IotRequest implements ToCopyableBuilder<CreatePolicyVersionRequest.Builder,CreatePolicyVersionRequest>
The input for the CreatePolicyVersion operation.
Modifier and Type | Class and Description |
---|---|
static interface |
CreatePolicyVersionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreatePolicyVersionRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyDocument()
The JSON document that describes the policy.
|
String |
policyName()
The policy name.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreatePolicyVersionRequest.Builder> |
serializableBuilderClass() |
Boolean |
setAsDefault()
Specifies whether the policy version is set as the default.
|
CreatePolicyVersionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String policyName()
The policy name.
public final String policyDocument()
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
public final Boolean setAsDefault()
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
public CreatePolicyVersionRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CreatePolicyVersionRequest.Builder,CreatePolicyVersionRequest>
toBuilder
in class IotRequest
public static CreatePolicyVersionRequest.Builder builder()
public static Class<? extends CreatePolicyVersionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2022. All rights reserved.