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

The application ID.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The application ID.

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

The application ID.

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

The application ID.

*/ inline void SetApplicationId(const char* value) { m_applicationId.assign(value); } /** *

The application ID.

*/ inline CreateHostedConfigurationVersionResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The application ID.

*/ inline CreateHostedConfigurationVersionResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The application ID.

*/ inline CreateHostedConfigurationVersionResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The configuration profile ID.

*/ inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; } /** *

The configuration profile ID.

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

The configuration profile ID.

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

The configuration profile ID.

*/ inline void SetConfigurationProfileId(const char* value) { m_configurationProfileId.assign(value); } /** *

The configuration profile ID.

*/ inline CreateHostedConfigurationVersionResult& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;} /** *

The configuration profile ID.

*/ inline CreateHostedConfigurationVersionResult& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;} /** *

The configuration profile ID.

*/ inline CreateHostedConfigurationVersionResult& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;} /** *

The configuration version.

*/ inline int GetVersionNumber() const{ return m_versionNumber; } /** *

The configuration version.

*/ inline void SetVersionNumber(int value) { m_versionNumber = value; } /** *

The configuration version.

*/ inline CreateHostedConfigurationVersionResult& WithVersionNumber(int value) { SetVersionNumber(value); return *this;} /** *

A description of the configuration.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the configuration.

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

A description of the configuration.

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

A description of the configuration.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

A description of the configuration.

*/ inline CreateHostedConfigurationVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the configuration.

*/ inline CreateHostedConfigurationVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the configuration.

*/ inline CreateHostedConfigurationVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The content of the configuration or the configuration data.

*/ inline Aws::IOStream& GetContent() const { 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); } /** *

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 CreateHostedConfigurationVersionResult& 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 CreateHostedConfigurationVersionResult& 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 CreateHostedConfigurationVersionResult& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

A user-defined label for an AppConfig hosted configuration version.

*/ inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; } /** *

A user-defined label for an AppConfig hosted configuration version.

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

A user-defined label for an AppConfig hosted configuration version.

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

A user-defined label for an AppConfig hosted configuration version.

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

A user-defined label for an AppConfig hosted configuration version.

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

A user-defined label for an AppConfig hosted configuration version.

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

A user-defined label for an AppConfig hosted configuration version.

*/ inline CreateHostedConfigurationVersionResult& 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 CreateHostedConfigurationVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateHostedConfigurationVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateHostedConfigurationVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_applicationId; Aws::String m_configurationProfileId; int m_versionNumber; Aws::String m_description; Aws::Utils::Stream::ResponseStream m_content; Aws::String m_contentType; Aws::String m_versionLabel; Aws::String m_requestId; }; } // namespace Model } // namespace AppConfig } // namespace Aws