AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyDistribution2020_05_31Request.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/CloudFrontRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CloudFront
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CLOUDFRONT_API CopyDistribution2020_05_31Request() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CopyDistribution"; }
31
32 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetPrimaryDistributionId() const { return m_primaryDistributionId; }
43 inline bool PrimaryDistributionIdHasBeenSet() const { return m_primaryDistributionIdHasBeenSet; }
44 template<typename PrimaryDistributionIdT = Aws::String>
45 void SetPrimaryDistributionId(PrimaryDistributionIdT&& value) { m_primaryDistributionIdHasBeenSet = true; m_primaryDistributionId = std::forward<PrimaryDistributionIdT>(value); }
46 template<typename PrimaryDistributionIdT = Aws::String>
47 CopyDistribution2020_05_31Request& WithPrimaryDistributionId(PrimaryDistributionIdT&& value) { SetPrimaryDistributionId(std::forward<PrimaryDistributionIdT>(value)); return *this;}
49
51
56 inline bool GetStaging() const { return m_staging; }
57 inline bool StagingHasBeenSet() const { return m_stagingHasBeenSet; }
58 inline void SetStaging(bool value) { m_stagingHasBeenSet = true; m_staging = value; }
59 inline CopyDistribution2020_05_31Request& WithStaging(bool value) { SetStaging(value); return *this;}
61
63
68 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
69 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
70 template<typename IfMatchT = Aws::String>
71 void SetIfMatch(IfMatchT&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::forward<IfMatchT>(value); }
72 template<typename IfMatchT = Aws::String>
73 CopyDistribution2020_05_31Request& WithIfMatch(IfMatchT&& value) { SetIfMatch(std::forward<IfMatchT>(value)); return *this;}
75
77
82 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
83 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
84 template<typename CallerReferenceT = Aws::String>
85 void SetCallerReference(CallerReferenceT&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::forward<CallerReferenceT>(value); }
86 template<typename CallerReferenceT = Aws::String>
87 CopyDistribution2020_05_31Request& WithCallerReference(CallerReferenceT&& value) { SetCallerReference(std::forward<CallerReferenceT>(value)); return *this;}
89
91
98 inline bool GetEnabled() const { return m_enabled; }
99 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
100 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
101 inline CopyDistribution2020_05_31Request& WithEnabled(bool value) { SetEnabled(value); return *this;}
103 private:
104
105 Aws::String m_primaryDistributionId;
106 bool m_primaryDistributionIdHasBeenSet = false;
107
108 bool m_staging{false};
109 bool m_stagingHasBeenSet = false;
110
111 Aws::String m_ifMatch;
112 bool m_ifMatchHasBeenSet = false;
113
114 Aws::String m_callerReference;
115 bool m_callerReferenceHasBeenSet = false;
116
117 bool m_enabled{false};
118 bool m_enabledHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CloudFront
123} // 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