AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront {
23namespace Model {
25 public:
26 AWS_CLOUDFRONT_API CopyDistribution2020_05_31Result() = default;
29
31
32 inline const Distribution& GetDistribution() const { return m_distribution; }
33 template <typename DistributionT = Distribution>
34 void SetDistribution(DistributionT&& value) {
35 m_distributionHasBeenSet = true;
36 m_distribution = std::forward<DistributionT>(value);
37 }
38 template <typename DistributionT = Distribution>
40 SetDistribution(std::forward<DistributionT>(value));
41 return *this;
42 }
44
46
49 inline const Aws::String& GetLocation() const { return m_location; }
50 template <typename LocationT = Aws::String>
51 void SetLocation(LocationT&& value) {
52 m_locationHasBeenSet = true;
53 m_location = std::forward<LocationT>(value);
54 }
55 template <typename LocationT = Aws::String>
57 SetLocation(std::forward<LocationT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetETag() const { return m_eTag; }
68 template <typename ETagT = Aws::String>
69 void SetETag(ETagT&& value) {
70 m_eTagHasBeenSet = true;
71 m_eTag = std::forward<ETagT>(value);
72 }
73 template <typename ETagT = Aws::String>
75 SetETag(std::forward<ETagT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
95 Distribution m_distribution;
96
97 Aws::String m_location;
98
99 Aws::String m_eTag;
100
101 Aws::String m_requestId;
102 bool m_distributionHasBeenSet = false;
103 bool m_locationHasBeenSet = false;
104 bool m_eTagHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CloudFront
110} // 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