AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CopyDistribution2020_05_31Request.h
1
6#pragma once
7#include <aws/cloudfront/CloudFrontRequest.h>
8#include <aws/cloudfront/CloudFront_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudFront {
15namespace Model {
16
20 public:
21 AWS_CLOUDFRONT_API CopyDistribution2020_05_31Request() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CopyDistribution"; }
28
29 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetPrimaryDistributionId() const { return m_primaryDistributionId; }
39 inline bool PrimaryDistributionIdHasBeenSet() const { return m_primaryDistributionIdHasBeenSet; }
40 template <typename PrimaryDistributionIdT = Aws::String>
41 void SetPrimaryDistributionId(PrimaryDistributionIdT&& value) {
42 m_primaryDistributionIdHasBeenSet = true;
43 m_primaryDistributionId = std::forward<PrimaryDistributionIdT>(value);
44 }
45 template <typename PrimaryDistributionIdT = Aws::String>
47 SetPrimaryDistributionId(std::forward<PrimaryDistributionIdT>(value));
48 return *this;
49 }
51
53
58 inline bool GetStaging() const { return m_staging; }
59 inline bool StagingHasBeenSet() const { return m_stagingHasBeenSet; }
60 inline void SetStaging(bool value) {
61 m_stagingHasBeenSet = true;
62 m_staging = value;
63 }
65 SetStaging(value);
66 return *this;
67 }
69
71
76 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
77 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
78 template <typename IfMatchT = Aws::String>
79 void SetIfMatch(IfMatchT&& value) {
80 m_ifMatchHasBeenSet = true;
81 m_ifMatch = std::forward<IfMatchT>(value);
82 }
83 template <typename IfMatchT = Aws::String>
85 SetIfMatch(std::forward<IfMatchT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
97 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
98 template <typename CallerReferenceT = Aws::String>
99 void SetCallerReference(CallerReferenceT&& value) {
100 m_callerReferenceHasBeenSet = true;
101 m_callerReference = std::forward<CallerReferenceT>(value);
102 }
103 template <typename CallerReferenceT = Aws::String>
105 SetCallerReference(std::forward<CallerReferenceT>(value));
106 return *this;
107 }
109
111
118 inline bool GetEnabled() const { return m_enabled; }
119 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
120 inline void SetEnabled(bool value) {
121 m_enabledHasBeenSet = true;
122 m_enabled = value;
123 }
125 SetEnabled(value);
126 return *this;
127 }
129 private:
130 Aws::String m_primaryDistributionId;
131
132 bool m_staging{false};
133
134 Aws::String m_ifMatch;
135
136 Aws::String m_callerReference;
137
138 bool m_enabled{false};
139 bool m_primaryDistributionIdHasBeenSet = false;
140 bool m_stagingHasBeenSet = false;
141 bool m_ifMatchHasBeenSet = false;
142 bool m_callerReferenceHasBeenSet = false;
143 bool m_enabledHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace CloudFront
148} // namespace Aws
CopyDistribution2020_05_31Request & WithCallerReference(CallerReferenceT &&value)
AWS_CLOUDFRONT_API CopyDistribution2020_05_31Request()=default
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
CopyDistribution2020_05_31Request & WithPrimaryDistributionId(PrimaryDistributionIdT &&value)
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CopyDistribution2020_05_31Request & WithIfMatch(IfMatchT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String