/** * 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 Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class CreateLaunchTemplateResponse { public: AWS_EC2_API CreateLaunchTemplateResponse(); AWS_EC2_API CreateLaunchTemplateResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API CreateLaunchTemplateResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the launch template.

*/ inline const LaunchTemplate& GetLaunchTemplate() const{ return m_launchTemplate; } /** *

Information about the launch template.

*/ inline void SetLaunchTemplate(const LaunchTemplate& value) { m_launchTemplate = value; } /** *

Information about the launch template.

*/ inline void SetLaunchTemplate(LaunchTemplate&& value) { m_launchTemplate = std::move(value); } /** *

Information about the launch template.

*/ inline CreateLaunchTemplateResponse& WithLaunchTemplate(const LaunchTemplate& value) { SetLaunchTemplate(value); return *this;} /** *

Information about the launch template.

*/ inline CreateLaunchTemplateResponse& WithLaunchTemplate(LaunchTemplate&& value) { SetLaunchTemplate(std::move(value)); return *this;} /** *

If the launch template contains parameters or parameter combinations that are * not valid, an error code and an error message are returned for each issue that's * found.

*/ inline const ValidationWarning& GetWarning() const{ return m_warning; } /** *

If the launch template contains parameters or parameter combinations that are * not valid, an error code and an error message are returned for each issue that's * found.

*/ inline void SetWarning(const ValidationWarning& value) { m_warning = value; } /** *

If the launch template contains parameters or parameter combinations that are * not valid, an error code and an error message are returned for each issue that's * found.

*/ inline void SetWarning(ValidationWarning&& value) { m_warning = std::move(value); } /** *

If the launch template contains parameters or parameter combinations that are * not valid, an error code and an error message are returned for each issue that's * found.

*/ inline CreateLaunchTemplateResponse& WithWarning(const ValidationWarning& value) { SetWarning(value); return *this;} /** *

If the launch template contains parameters or parameter combinations that are * not valid, an error code and an error message are returned for each issue that's * found.

*/ inline CreateLaunchTemplateResponse& WithWarning(ValidationWarning&& value) { SetWarning(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CreateLaunchTemplateResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateLaunchTemplateResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: LaunchTemplate m_launchTemplate; ValidationWarning m_warning; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws