/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace AppConfigData { namespace Model { class GetLatestConfigurationResult { public: AWS_APPCONFIGDATA_API GetLatestConfigurationResult(); //We have to define these because Microsoft doesn't auto generate them AWS_APPCONFIGDATA_API GetLatestConfigurationResult(GetLatestConfigurationResult&&); AWS_APPCONFIGDATA_API GetLatestConfigurationResult& operator=(GetLatestConfigurationResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetLatestConfigurationResult(const GetLatestConfigurationResult&) = delete; GetLatestConfigurationResult& operator=(const GetLatestConfigurationResult&) = delete; AWS_APPCONFIGDATA_API GetLatestConfigurationResult(Aws::AmazonWebServiceResult&& result); AWS_APPCONFIGDATA_API GetLatestConfigurationResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

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.

*/ inline const Aws::String& GetNextPollConfigurationToken() const{ return m_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.

*/ inline void SetNextPollConfigurationToken(const Aws::String& value) { m_nextPollConfigurationToken = value; } /** *

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.

*/ inline void SetNextPollConfigurationToken(Aws::String&& value) { m_nextPollConfigurationToken = std::move(value); } /** *

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.

*/ inline void SetNextPollConfigurationToken(const char* value) { m_nextPollConfigurationToken.assign(value); } /** *

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.

*/ inline GetLatestConfigurationResult& WithNextPollConfigurationToken(const Aws::String& value) { SetNextPollConfigurationToken(value); return *this;} /** *

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.

*/ inline GetLatestConfigurationResult& WithNextPollConfigurationToken(Aws::String&& value) { SetNextPollConfigurationToken(std::move(value)); return *this;} /** *

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.

*/ inline GetLatestConfigurationResult& WithNextPollConfigurationToken(const char* value) { SetNextPollConfigurationToken(value); return *this;} /** *

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

*/ inline int GetNextPollIntervalInSeconds() const{ return m_nextPollIntervalInSeconds; } /** *

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

*/ inline void SetNextPollIntervalInSeconds(int value) { m_nextPollIntervalInSeconds = value; } /** *

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

*/ inline GetLatestConfigurationResult& WithNextPollIntervalInSeconds(int value) { SetNextPollIntervalInSeconds(value); return *this;} /** *

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

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

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

*/ inline void SetContentType(const Aws::String& value) { m_contentType = value; } /** *

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

*/ inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); } /** *

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

*/ inline void SetContentType(const char* value) { m_contentType.assign(value); } /** *

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

*/ inline GetLatestConfigurationResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

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

*/ inline GetLatestConfigurationResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

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

*/ inline GetLatestConfigurationResult& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

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

*/ inline Aws::IOStream& GetConfiguration() const { return m_configuration.GetUnderlyingStream(); } /** *

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

*/ inline void ReplaceBody(Aws::IOStream* body) { m_configuration = Aws::Utils::Stream::ResponseStream(body); } /** *

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.

*/ inline const Aws::String& GetVersionLabel() const{ return m_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.

*/ inline void SetVersionLabel(const Aws::String& value) { m_versionLabel = value; } /** *

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.

*/ inline void SetVersionLabel(Aws::String&& value) { m_versionLabel = std::move(value); } /** *

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.

*/ inline void SetVersionLabel(const char* value) { m_versionLabel.assign(value); } /** *

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.

*/ inline GetLatestConfigurationResult& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;} /** *

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.

*/ inline GetLatestConfigurationResult& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;} /** *

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.

*/ inline GetLatestConfigurationResult& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetLatestConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetLatestConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetLatestConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextPollConfigurationToken; int m_nextPollIntervalInSeconds; Aws::String m_contentType; Aws::Utils::Stream::ResponseStream m_configuration; Aws::String m_versionLabel; Aws::String m_requestId; }; } // namespace Model } // namespace AppConfigData } // namespace Aws