AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateDistribution2020_05_31Result.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/Distribution.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFront {
24namespace Model {
32 public:
33 AWS_CLOUDFRONT_API CreateDistribution2020_05_31Result() = default;
36
38
41 inline const Distribution& GetDistribution() const { return m_distribution; }
42 template <typename DistributionT = Distribution>
43 void SetDistribution(DistributionT&& value) {
44 m_distributionHasBeenSet = true;
45 m_distribution = std::forward<DistributionT>(value);
46 }
47 template <typename DistributionT = Distribution>
49 SetDistribution(std::forward<DistributionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLocation() const { return m_location; }
59 template <typename LocationT = Aws::String>
60 void SetLocation(LocationT&& value) {
61 m_locationHasBeenSet = true;
62 m_location = std::forward<LocationT>(value);
63 }
64 template <typename LocationT = Aws::String>
66 SetLocation(std::forward<LocationT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetETag() const { return m_eTag; }
76 template <typename ETagT = Aws::String>
77 void SetETag(ETagT&& value) {
78 m_eTagHasBeenSet = true;
79 m_eTag = std::forward<ETagT>(value);
80 }
81 template <typename ETagT = Aws::String>
83 SetETag(std::forward<ETagT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Distribution m_distribution;
106
107 Aws::String m_location;
108
109 Aws::String m_eTag;
110
111 Aws::String m_requestId;
112 Aws::Http::HttpResponseCode m_HttpResponseCode;
113 bool m_distributionHasBeenSet = false;
114 bool m_locationHasBeenSet = false;
115 bool m_eTagHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CloudFront
121} // namespace Aws
AWS_CLOUDFRONT_API CreateDistribution2020_05_31Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateDistribution2020_05_31Result & WithRequestId(RequestIdT &&value)
AWS_CLOUDFRONT_API CreateDistribution2020_05_31Result()=default
CreateDistribution2020_05_31Result & WithLocation(LocationT &&value)
AWS_CLOUDFRONT_API CreateDistribution2020_05_31Result(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateDistribution2020_05_31Result & WithDistribution(DistributionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument