AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CopyDistribution2020_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 {
26 public:
27 AWS_CLOUDFRONT_API CopyDistribution2020_05_31Result() = default;
30
32
33 inline const Distribution& GetDistribution() const { return m_distribution; }
34 template <typename DistributionT = Distribution>
35 void SetDistribution(DistributionT&& value) {
36 m_distributionHasBeenSet = true;
37 m_distribution = std::forward<DistributionT>(value);
38 }
39 template <typename DistributionT = Distribution>
41 SetDistribution(std::forward<DistributionT>(value));
42 return *this;
43 }
45
47
50 inline const Aws::String& GetLocation() const { return m_location; }
51 template <typename LocationT = Aws::String>
52 void SetLocation(LocationT&& value) {
53 m_locationHasBeenSet = true;
54 m_location = std::forward<LocationT>(value);
55 }
56 template <typename LocationT = Aws::String>
58 SetLocation(std::forward<LocationT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetETag() const { return m_eTag; }
69 template <typename ETagT = Aws::String>
70 void SetETag(ETagT&& value) {
71 m_eTagHasBeenSet = true;
72 m_eTag = std::forward<ETagT>(value);
73 }
74 template <typename ETagT = Aws::String>
76 SetETag(std::forward<ETagT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Distribution m_distribution;
99
100 Aws::String m_location;
101
102 Aws::String m_eTag;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_distributionHasBeenSet = false;
107 bool m_locationHasBeenSet = false;
108 bool m_eTagHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace CloudFront
114} // namespace Aws
CopyDistribution2020_05_31Result & WithETag(ETagT &&value)
AWS_CLOUDFRONT_API CopyDistribution2020_05_31Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_CLOUDFRONT_API CopyDistribution2020_05_31Result(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CopyDistribution2020_05_31Result & WithLocation(LocationT &&value)
AWS_CLOUDFRONT_API CopyDistribution2020_05_31Result()=default
CopyDistribution2020_05_31Result & WithDistribution(DistributionT &&value)
CopyDistribution2020_05_31Result & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument