Interface CreatePolicyVersionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreatePolicyVersionRequest.Builder,,CreatePolicyVersionRequest> IotRequest.Builder,SdkBuilder<CreatePolicyVersionRequest.Builder,,CreatePolicyVersionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreatePolicyVersionRequest
public static interface CreatePolicyVersionRequest.Builder
extends IotRequest.Builder, SdkPojo, CopyableBuilder<CreatePolicyVersionRequest.Builder,CreatePolicyVersionRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyDocument(String policyDocument) The JSON document that describes the policy.policyName(String policyName) The policy name.setAsDefault(Boolean setAsDefault) Specifies whether the policy version is set as the default.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
policyName
The policy name.
- Parameters:
policyName- The policy name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDocument
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
- Parameters:
policyDocument- The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreatePolicyVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreatePolicyVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-