/** * 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 AppConfig { namespace Model { class AWS_APPCONFIG_API GetConfigurationResult { public: GetConfigurationResult(); //We have to define these because Microsoft doesn't auto generate them GetConfigurationResult(GetConfigurationResult&&); GetConfigurationResult& operator=(GetConfigurationResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetConfigurationResult(const GetConfigurationResult&) = delete; GetConfigurationResult& operator=(const GetConfigurationResult&) = delete; GetConfigurationResult(Aws::AmazonWebServiceResult&& result); GetConfigurationResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The content of the configuration or the configuration data.

*/ inline Aws::IOStream& GetContent() { return m_content.GetUnderlyingStream(); } /** *

The content of the configuration or the configuration data.

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

The configuration version.

*/ inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; } /** *

The configuration version.

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

The configuration version.

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

The configuration version.

*/ inline void SetConfigurationVersion(const char* value) { m_configurationVersion.assign(value); } /** *

The configuration version.

*/ inline GetConfigurationResult& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;} /** *

The configuration version.

*/ inline GetConfigurationResult& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;} /** *

The configuration version.

*/ inline GetConfigurationResult& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;} /** *

A standard MIME type describing the format of the configuration content. For * more information, see Content-Type.

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

A standard MIME type describing the format of the configuration content. For * more information, see Content-Type.

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

A standard MIME type describing the format of the configuration content. For * more information, see Content-Type.

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

A standard MIME type describing the format of the configuration content. For * more information, see Content-Type.

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

A standard MIME type describing the format of the configuration content. For * more information, see Content-Type.

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

A standard MIME type describing the format of the configuration content. For * more information, see Content-Type.

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

A standard MIME type describing the format of the configuration content. For * more information, see Content-Type.

*/ inline GetConfigurationResult& WithContentType(const char* value) { SetContentType(value); return *this;} private: Aws::Utils::Stream::ResponseStream m_content; Aws::String m_configurationVersion; Aws::String m_contentType; }; } // namespace Model } // namespace AppConfig } // namespace Aws