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 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

      CreatePolicyVersionRequest.Builder policyDocument(String 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

      CreatePolicyVersionRequest.Builder setAsDefault(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).

      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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.