AWS SDK for C++  1.9.16
AWS SDK for C++
UpdateDistribution2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudFront
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateDistribution"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const DistributionConfig& GetDistributionConfig() const{ return m_distributionConfig; }
45 
49  inline bool DistributionConfigHasBeenSet() const { return m_distributionConfigHasBeenSet; }
50 
54  inline void SetDistributionConfig(const DistributionConfig& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = value; }
55 
59  inline void SetDistributionConfig(DistributionConfig&& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = std::move(value); }
60 
64  inline UpdateDistribution2020_05_31Request& WithDistributionConfig(const DistributionConfig& value) { SetDistributionConfig(value); return *this;}
65 
69  inline UpdateDistribution2020_05_31Request& WithDistributionConfig(DistributionConfig&& value) { SetDistributionConfig(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetId() const{ return m_id; }
76 
80  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
81 
85  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
86 
90  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
91 
95  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
96 
100  inline UpdateDistribution2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;}
101 
105  inline UpdateDistribution2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
106 
110  inline UpdateDistribution2020_05_31Request& WithId(const char* value) { SetId(value); return *this;}
111 
112 
117  inline const Aws::String& GetIfMatch() const{ return m_ifMatch; }
118 
123  inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
124 
129  inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; }
130 
135  inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); }
136 
141  inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); }
142 
147  inline UpdateDistribution2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;}
148 
153  inline UpdateDistribution2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;}
154 
159  inline UpdateDistribution2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;}
160 
161  private:
162 
163  DistributionConfig m_distributionConfig;
164  bool m_distributionConfigHasBeenSet;
165 
166  Aws::String m_id;
167  bool m_idHasBeenSet;
168 
169  Aws::String m_ifMatch;
170  bool m_ifMatchHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace CloudFront
175 } // namespace Aws
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::WithIfMatch
UpdateDistribution2020_05_31Request & WithIfMatch(Aws::String &&value)
Definition: UpdateDistribution2020_05_31Request.h:153
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateDistribution2020_05_31Request.h:80
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::IfMatchHasBeenSet
bool IfMatchHasBeenSet() const
Definition: UpdateDistribution2020_05_31Request.h:123
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::WithDistributionConfig
UpdateDistribution2020_05_31Request & WithDistributionConfig(const DistributionConfig &value)
Definition: UpdateDistribution2020_05_31Request.h:64
CloudFrontRequest.h
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::WithDistributionConfig
UpdateDistribution2020_05_31Request & WithDistributionConfig(DistributionConfig &&value)
Definition: UpdateDistribution2020_05_31Request.h:69
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::WithId
UpdateDistribution2020_05_31Request & WithId(const Aws::String &value)
Definition: UpdateDistribution2020_05_31Request.h:100
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::UpdateDistribution2020_05_31Request
UpdateDistribution2020_05_31Request()
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SetId
void SetId(const char *value)
Definition: UpdateDistribution2020_05_31Request.h:95
DistributionConfig.h
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::WithId
UpdateDistribution2020_05_31Request & WithId(Aws::String &&value)
Definition: UpdateDistribution2020_05_31Request.h:105
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SetDistributionConfig
void SetDistributionConfig(const DistributionConfig &value)
Definition: UpdateDistribution2020_05_31Request.h:54
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::GetDistributionConfig
const DistributionConfig & GetDistributionConfig() const
Definition: UpdateDistribution2020_05_31Request.h:44
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SetId
void SetId(Aws::String &&value)
Definition: UpdateDistribution2020_05_31Request.h:90
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::WithIfMatch
UpdateDistribution2020_05_31Request & WithIfMatch(const char *value)
Definition: UpdateDistribution2020_05_31Request.h:159
AWSString.h
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SetId
void SetId(const Aws::String &value)
Definition: UpdateDistribution2020_05_31Request.h:85
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::GetId
const Aws::String & GetId() const
Definition: UpdateDistribution2020_05_31Request.h:75
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SetIfMatch
void SetIfMatch(const Aws::String &value)
Definition: UpdateDistribution2020_05_31Request.h:129
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::WithId
UpdateDistribution2020_05_31Request & WithId(const char *value)
Definition: UpdateDistribution2020_05_31Request.h:110
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::DistributionConfigHasBeenSet
bool DistributionConfigHasBeenSet() const
Definition: UpdateDistribution2020_05_31Request.h:49
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::GetIfMatch
const Aws::String & GetIfMatch() const
Definition: UpdateDistribution2020_05_31Request.h:117
CloudFront_EXPORTS.h
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request
Definition: UpdateDistribution2020_05_31Request.h:26
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::WithIfMatch
UpdateDistribution2020_05_31Request & WithIfMatch(const Aws::String &value)
Definition: UpdateDistribution2020_05_31Request.h:147
Aws::CloudFront::Model::DistributionConfig
Definition: DistributionConfig.h:42
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SetDistributionConfig
void SetDistributionConfig(DistributionConfig &&value)
Definition: UpdateDistribution2020_05_31Request.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDistribution2020_05_31Request.h:34
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SetIfMatch
void SetIfMatch(const char *value)
Definition: UpdateDistribution2020_05_31Request.h:141
Aws::CloudFront::Model::UpdateDistribution2020_05_31Request::SetIfMatch
void SetIfMatch(Aws::String &&value)
Definition: UpdateDistribution2020_05_31Request.h:135