Class CreatePolicyVersionRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.iot.model.IotRequest
-
- software.amazon.awssdk.services.iot.model.CreatePolicyVersionRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreatePolicyVersionRequest.Builder,CreatePolicyVersionRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreatePolicyVersionRequest extends IotRequest implements ToCopyableBuilder<CreatePolicyVersionRequest.Builder,CreatePolicyVersionRequest>
The input for the CreatePolicyVersion operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreatePolicyVersionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreatePolicyVersionRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyDocument()The JSON document that describes the policy.StringpolicyName()The policy name.List<SdkField<?>>sdkFields()static Class<? extends CreatePolicyVersionRequest.Builder>serializableBuilderClass()BooleansetAsDefault()Specifies whether the policy version is set as the default.CreatePolicyVersionRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policyName
public final String policyName()
The policy name.
- Returns:
- The policy name.
-
policyDocument
public final String policyDocument()
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
- Returns:
- The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
-
setAsDefault
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).
- Returns:
- 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).
-
toBuilder
public CreatePolicyVersionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreatePolicyVersionRequest.Builder,CreatePolicyVersionRequest>- Specified by:
toBuilderin classIotRequest
-
builder
public static CreatePolicyVersionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreatePolicyVersionRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-