AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPrimaryDistributionId(const Aws::String& value) { m_primaryDistributionIdHasBeenSet = true; m_primaryDistributionId = value; }
45 inline void SetPrimaryDistributionId(Aws::String&& value) { m_primaryDistributionIdHasBeenSet = true; m_primaryDistributionId = std::move(value); }
46 inline void SetPrimaryDistributionId(const char* value) { m_primaryDistributionIdHasBeenSet = true; m_primaryDistributionId.assign(value); }
51
53
58 inline bool GetStaging() const{ return m_staging; }
59 inline bool StagingHasBeenSet() const { return m_stagingHasBeenSet; }
60 inline void SetStaging(bool value) { m_stagingHasBeenSet = true; m_staging = value; }
61 inline CopyDistribution2020_05_31Request& WithStaging(bool value) { SetStaging(value); return *this;}
63
65
70 inline const Aws::String& GetIfMatch() const{ return m_ifMatch; }
71 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
72 inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; }
73 inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); }
74 inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); }
75 inline CopyDistribution2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;}
76 inline CopyDistribution2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;}
77 inline CopyDistribution2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;}
79
81
86 inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
87 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
88 inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
89 inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); }
90 inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
92 inline CopyDistribution2020_05_31Request& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;}
93 inline CopyDistribution2020_05_31Request& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
95
97
104 inline bool GetEnabled() const{ return m_enabled; }
105 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
106 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
107 inline CopyDistribution2020_05_31Request& WithEnabled(bool value) { SetEnabled(value); return *this;}
109 private:
110
111 Aws::String m_primaryDistributionId;
112 bool m_primaryDistributionIdHasBeenSet = false;
113
114 bool m_staging;
115 bool m_stagingHasBeenSet = false;
116
117 Aws::String m_ifMatch;
118 bool m_ifMatchHasBeenSet = false;
119
120 Aws::String m_callerReference;
121 bool m_callerReferenceHasBeenSet = false;
122
123 bool m_enabled;
124 bool m_enabledHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CloudFront
129} // namespace Aws
CopyDistribution2020_05_31Request & WithPrimaryDistributionId(const Aws::String &value)
CopyDistribution2020_05_31Request & WithCallerReference(const char *value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
CopyDistribution2020_05_31Request & WithPrimaryDistributionId(const char *value)
CopyDistribution2020_05_31Request & WithIfMatch(const char *value)
CopyDistribution2020_05_31Request & WithPrimaryDistributionId(Aws::String &&value)
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CopyDistribution2020_05_31Request & WithCallerReference(Aws::String &&value)
CopyDistribution2020_05_31Request & WithIfMatch(const Aws::String &value)
CopyDistribution2020_05_31Request & WithCallerReference(const Aws::String &value)
CopyDistribution2020_05_31Request & WithIfMatch(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String