Interface GetLatestConfigurationResponse.Builder

  • Method Details

    • nextPollConfigurationToken

      GetLatestConfigurationResponse.Builder nextPollConfigurationToken(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.
    • nextPollIntervalInSeconds

      GetLatestConfigurationResponse.Builder nextPollIntervalInSeconds(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.
    • 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.
    • configuration

      GetLatestConfigurationResponse.Builder configuration(SdkBytes configuration)

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

      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.
    • versionLabel

      GetLatestConfigurationResponse.Builder versionLabel(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.