JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

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.appconfigdata.model

Class GetLatestConfigurationResult

    • Constructor Detail

      • GetLatestConfigurationResult

        public GetLatestConfigurationResult()
    • Method Detail

      • setNextPollConfigurationToken

        public void setNextPollConfigurationToken(String nextPollConfigurationToken)

        The latest token describing the current state of the configuration session. This must be provided to the next call to GetLatestConfiguration.

        This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException.

        Parameters:
        nextPollConfigurationToken - The latest token describing the current state of the configuration session. This must be provided to the next call to GetLatestConfiguration.

        This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException.

      • getNextPollConfigurationToken

        public String getNextPollConfigurationToken()

        The latest token describing the current state of the configuration session. This must be provided to the next call to GetLatestConfiguration.

        This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException.

        Returns:
        The latest token describing the current state of the configuration session. This must be provided to the next call to GetLatestConfiguration.

        This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException.

      • withNextPollConfigurationToken

        public GetLatestConfigurationResult withNextPollConfigurationToken(String nextPollConfigurationToken)

        The latest token describing the current state of the configuration session. This must be provided to the next call to GetLatestConfiguration.

        This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException.

        Parameters:
        nextPollConfigurationToken - The latest token describing the current state of the configuration session. This must be provided to the next call to GetLatestConfiguration.

        This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException.

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

        public void setNextPollIntervalInSeconds(Integer nextPollIntervalInSeconds)

        The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll interval.

        Parameters:
        nextPollIntervalInSeconds - The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll interval.
      • getNextPollIntervalInSeconds

        public Integer getNextPollIntervalInSeconds()

        The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll interval.

        Returns:
        The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll interval.
      • withNextPollIntervalInSeconds

        public GetLatestConfigurationResult withNextPollIntervalInSeconds(Integer nextPollIntervalInSeconds)

        The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll interval.

        Parameters:
        nextPollIntervalInSeconds - The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll interval.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setContentType

        public void setContentType(String contentType)

        A standard MIME type describing the format of the configuration content.

        Parameters:
        contentType - A standard MIME type describing the format of the configuration content.
      • getContentType

        public String getContentType()

        A standard MIME type describing the format of the configuration content.

        Returns:
        A standard MIME type describing the format of the configuration content.
      • withContentType

        public GetLatestConfigurationResult withContentType(String contentType)

        A standard MIME type describing the format of the configuration content.

        Parameters:
        contentType - A standard MIME type describing the format of the configuration content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setConfiguration

        public void setConfiguration(ByteBuffer configuration)

        The data of the configuration. This may be empty if the client already has the latest version of configuration.

        The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.

        Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

        Parameters:
        configuration - The data of the configuration. This may be empty if the client already has the latest version of configuration.
      • getConfiguration

        public ByteBuffer getConfiguration()

        The data of the configuration. This may be empty if the client already has the latest version of configuration.

        ByteBuffers are stateful. Calling their get methods changes their position. We recommend using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent position, and calling get methods on this rather than directly on the returned ByteBuffer. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the position.

        Returns:
        The data of the configuration. This may be empty if the client already has the latest version of configuration.
      • withConfiguration

        public GetLatestConfigurationResult withConfiguration(ByteBuffer configuration)

        The data of the configuration. This may be empty if the client already has the latest version of configuration.

        The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.

        Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

        Parameters:
        configuration - The data of the configuration. This may be empty if the client already has the latest version of configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVersionLabel

        public void setVersionLabel(String versionLabel)

        The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.

        Parameters:
        versionLabel - The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.
      • getVersionLabel

        public String getVersionLabel()

        The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.

        Returns:
        The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.
      • withVersionLabel

        public GetLatestConfigurationResult withVersionLabel(String versionLabel)

        The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.

        Parameters:
        versionLabel - The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.
        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 によって変換されたページ (->オリジナル) /