/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { class AWS_LIGHTSAIL_API CreateDistributionResult { public: CreateDistributionResult(); CreateDistributionResult(const Aws::AmazonWebServiceResult& result); CreateDistributionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An object that describes the distribution created.

*/ inline const LightsailDistribution& GetDistribution() const{ return m_distribution; } /** *

An object that describes the distribution created.

*/ inline void SetDistribution(const LightsailDistribution& value) { m_distribution = value; } /** *

An object that describes the distribution created.

*/ inline void SetDistribution(LightsailDistribution&& value) { m_distribution = std::move(value); } /** *

An object that describes the distribution created.

*/ inline CreateDistributionResult& WithDistribution(const LightsailDistribution& value) { SetDistribution(value); return *this;} /** *

An object that describes the distribution created.

*/ inline CreateDistributionResult& WithDistribution(LightsailDistribution&& value) { SetDistribution(std::move(value)); return *this;} /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline const Operation& GetOperation() const{ return m_operation; } /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline void SetOperation(const Operation& value) { m_operation = value; } /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline void SetOperation(Operation&& value) { m_operation = std::move(value); } /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline CreateDistributionResult& WithOperation(const Operation& value) { SetOperation(value); return *this;} /** *

An array of objects that describe the result of the action, such as the * status of the request, the timestamp of the request, and the resources affected * by the request.

*/ inline CreateDistributionResult& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;} private: LightsailDistribution m_distribution; Operation m_operation; }; } // namespace Model } // namespace Lightsail } // namespace Aws