JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.verifiedpermissions.model

Class CreatePolicyTemplateRequest

    • Constructor Detail

      • CreatePolicyTemplateRequest

        public CreatePolicyTemplateRequest()
    • Method Detail

      • setClientToken

        public void setClientToken(String clientToken)

        Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

        Parameters:
        clientToken - Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

      • getClientToken

        public String getClientToken()

        Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

        Returns:
        Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

      • withClientToken

        public CreatePolicyTemplateRequest withClientToken(String clientToken)

        Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

        Parameters:
        clientToken - Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

        If you don't provide this value, then Amazon Web Services generates a random one for you.

        If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.

        Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.

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

        public void setPolicyStoreId(String policyStoreId)

        The ID of the policy store in which to create the policy template.

        Parameters:
        policyStoreId - The ID of the policy store in which to create the policy template.
      • getPolicyStoreId

        public String getPolicyStoreId()

        The ID of the policy store in which to create the policy template.

        Returns:
        The ID of the policy store in which to create the policy template.
      • withPolicyStoreId

        public CreatePolicyTemplateRequest withPolicyStoreId(String policyStoreId)

        The ID of the policy store in which to create the policy template.

        Parameters:
        policyStoreId - The ID of the policy store in which to create the policy template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDescription

        public void setDescription(String description)

        Specifies a description for the policy template.

        Parameters:
        description - Specifies a description for the policy template.
      • getDescription

        public String getDescription()

        Specifies a description for the policy template.

        Returns:
        Specifies a description for the policy template.
      • withDescription

        public CreatePolicyTemplateRequest withDescription(String description)

        Specifies a description for the policy template.

        Parameters:
        description - Specifies a description for the policy template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStatement

        public void setStatement(String statement)

        Specifies the content that you want to use for the new policy template, written in the Cedar policy language.

        Parameters:
        statement - Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
      • getStatement

        public String getStatement()

        Specifies the content that you want to use for the new policy template, written in the Cedar policy language.

        Returns:
        Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
      • withStatement

        public CreatePolicyTemplateRequest withStatement(String statement)

        Specifies the content that you want to use for the new policy template, written in the Cedar policy language.

        Parameters:
        statement - Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public 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.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /