Interface CreatePolicyRequest.Builder

    • Method Detail

      • policyName

        CreatePolicyRequest.Builder policyName​(String 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

        CreatePolicyRequest.Builder policyDocument​(String policyDocument)

        The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.

        Parameters:
        policyDocument - The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePolicyRequest.Builder tags​(Collection<Tag> tags)

        Metadata which can be used to manage the policy.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        Parameters:
        tags - Metadata which can be used to manage the policy.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePolicyRequest.Builder tags​(Tag... tags)

        Metadata which can be used to manage the policy.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        Parameters:
        tags - Metadata which can be used to manage the policy.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreatePolicyRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        Metadata which can be used to manage the policy.

        For URI Request parameters use format: ...key1=value1&key2=value2...

        For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

        For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)