/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace AppConfigData { namespace Model { /** */ class GetLatestConfigurationRequest : public AppConfigDataRequest { public: AWS_APPCONFIGDATA_API GetLatestConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetLatestConfiguration"; } AWS_APPCONFIGDATA_API Aws::String SerializePayload() const override; AWS_APPCONFIGDATA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Token describing the current state of the configuration session. To obtain a * token, first call the StartConfigurationSession API. Note that every call * to GetLatestConfiguration will return a new * ConfigurationToken (NextPollConfigurationToken in the * response) and must be provided to subsequent * GetLatestConfiguration API calls.

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.

*/ inline const Aws::String& GetConfigurationToken() const{ return m_configurationToken; } /** *

Token describing the current state of the configuration session. To obtain a * token, first call the StartConfigurationSession API. Note that every call * to GetLatestConfiguration will return a new * ConfigurationToken (NextPollConfigurationToken in the * response) and must be provided to subsequent * GetLatestConfiguration API calls.

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.

*/ inline bool ConfigurationTokenHasBeenSet() const { return m_configurationTokenHasBeenSet; } /** *

Token describing the current state of the configuration session. To obtain a * token, first call the StartConfigurationSession API. Note that every call * to GetLatestConfiguration will return a new * ConfigurationToken (NextPollConfigurationToken in the * response) and must be provided to subsequent * GetLatestConfiguration API calls.

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.

*/ inline void SetConfigurationToken(const Aws::String& value) { m_configurationTokenHasBeenSet = true; m_configurationToken = value; } /** *

Token describing the current state of the configuration session. To obtain a * token, first call the StartConfigurationSession API. Note that every call * to GetLatestConfiguration will return a new * ConfigurationToken (NextPollConfigurationToken in the * response) and must be provided to subsequent * GetLatestConfiguration API calls.

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.

*/ inline void SetConfigurationToken(Aws::String&& value) { m_configurationTokenHasBeenSet = true; m_configurationToken = std::move(value); } /** *

Token describing the current state of the configuration session. To obtain a * token, first call the StartConfigurationSession API. Note that every call * to GetLatestConfiguration will return a new * ConfigurationToken (NextPollConfigurationToken in the * response) and must be provided to subsequent * GetLatestConfiguration API calls.

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.

*/ inline void SetConfigurationToken(const char* value) { m_configurationTokenHasBeenSet = true; m_configurationToken.assign(value); } /** *

Token describing the current state of the configuration session. To obtain a * token, first call the StartConfigurationSession API. Note that every call * to GetLatestConfiguration will return a new * ConfigurationToken (NextPollConfigurationToken in the * response) and must be provided to subsequent * GetLatestConfiguration API calls.

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.

*/ inline GetLatestConfigurationRequest& WithConfigurationToken(const Aws::String& value) { SetConfigurationToken(value); return *this;} /** *

Token describing the current state of the configuration session. To obtain a * token, first call the StartConfigurationSession API. Note that every call * to GetLatestConfiguration will return a new * ConfigurationToken (NextPollConfigurationToken in the * response) and must be provided to subsequent * GetLatestConfiguration API calls.

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.

*/ inline GetLatestConfigurationRequest& WithConfigurationToken(Aws::String&& value) { SetConfigurationToken(std::move(value)); return *this;} /** *

Token describing the current state of the configuration session. To obtain a * token, first call the StartConfigurationSession API. Note that every call * to GetLatestConfiguration will return a new * ConfigurationToken (NextPollConfigurationToken in the * response) and must be provided to subsequent * GetLatestConfiguration API calls.

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.

*/ inline GetLatestConfigurationRequest& WithConfigurationToken(const char* value) { SetConfigurationToken(value); return *this;} private: Aws::String m_configurationToken; bool m_configurationTokenHasBeenSet = false; }; } // namespace Model } // namespace AppConfigData } // namespace Aws