AWS SDK for C++  1.9.20
AWS SDK for C++
CreateDistributionResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const LightsailDistribution& GetDistribution() const{ return m_distribution; }
40 
44  inline void SetDistribution(const LightsailDistribution& value) { m_distribution = value; }
45 
49  inline void SetDistribution(LightsailDistribution&& value) { m_distribution = std::move(value); }
50 
54  inline CreateDistributionResult& WithDistribution(const LightsailDistribution& value) { SetDistribution(value); return *this;}
55 
59  inline CreateDistributionResult& WithDistribution(LightsailDistribution&& value) { SetDistribution(std::move(value)); return *this;}
60 
61 
67  inline const Operation& GetOperation() const{ return m_operation; }
68 
74  inline void SetOperation(const Operation& value) { m_operation = value; }
75 
81  inline void SetOperation(Operation&& value) { m_operation = std::move(value); }
82 
88  inline CreateDistributionResult& WithOperation(const Operation& value) { SetOperation(value); return *this;}
89 
95  inline CreateDistributionResult& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;}
96 
97  private:
98 
99  LightsailDistribution m_distribution;
100 
101  Operation m_operation;
102  };
103 
104 } // namespace Model
105 } // namespace Lightsail
106 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::CreateDistributionResult::SetOperation
void SetOperation(const Operation &value)
Definition: CreateDistributionResult.h:74
Aws::Lightsail::Model::CreateDistributionResult::WithDistribution
CreateDistributionResult & WithDistribution(LightsailDistribution &&value)
Definition: CreateDistributionResult.h:59
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Lightsail::Model::CreateDistributionResult::WithOperation
CreateDistributionResult & WithOperation(const Operation &value)
Definition: CreateDistributionResult.h:88
Aws::Lightsail::Model::CreateDistributionResult::CreateDistributionResult
CreateDistributionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::CreateDistributionResult::WithDistribution
CreateDistributionResult & WithDistribution(const LightsailDistribution &value)
Definition: CreateDistributionResult.h:54
Aws::Lightsail::Model::CreateDistributionResult::SetDistribution
void SetDistribution(const LightsailDistribution &value)
Definition: CreateDistributionResult.h:44
Aws::Lightsail::Model::CreateDistributionResult
Definition: CreateDistributionResult.h:29
Aws::Lightsail::Model::LightsailDistribution
Definition: LightsailDistribution.h:43
Aws::Lightsail::Model::CreateDistributionResult::operator=
CreateDistributionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::CreateDistributionResult::GetDistribution
const LightsailDistribution & GetDistribution() const
Definition: CreateDistributionResult.h:39
Aws::Lightsail::Model::CreateDistributionResult::CreateDistributionResult
CreateDistributionResult()
Aws::Lightsail::Model::CreateDistributionResult::WithOperation
CreateDistributionResult & WithOperation(Operation &&value)
Definition: CreateDistributionResult.h:95
Aws::Lightsail::Model::CreateDistributionResult::SetOperation
void SetOperation(Operation &&value)
Definition: CreateDistributionResult.h:81
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateDistributionResult::SetDistribution
void SetDistribution(LightsailDistribution &&value)
Definition: CreateDistributionResult.h:49
Aws
Definition: AccessManagementClient.h:15
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
LightsailDistribution.h
Operation.h
Aws::Lightsail::Model::CreateDistributionResult::GetOperation
const Operation & GetOperation() const
Definition: CreateDistributionResult.h:67