AWS SDK for C++  1.9.16
AWS SDK for C++
UpdateCachePolicy2020_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 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateCachePolicy"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const CachePolicyConfig& GetCachePolicyConfig() const{ return m_cachePolicyConfig; }
42 
46  inline bool CachePolicyConfigHasBeenSet() const { return m_cachePolicyConfigHasBeenSet; }
47 
51  inline void SetCachePolicyConfig(const CachePolicyConfig& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = value; }
52 
56  inline void SetCachePolicyConfig(CachePolicyConfig&& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = std::move(value); }
57 
61  inline UpdateCachePolicy2020_05_31Request& WithCachePolicyConfig(const CachePolicyConfig& value) { SetCachePolicyConfig(value); return *this;}
62 
66  inline UpdateCachePolicy2020_05_31Request& WithCachePolicyConfig(CachePolicyConfig&& value) { SetCachePolicyConfig(std::move(value)); return *this;}
67 
68 
74  inline const Aws::String& GetId() const{ return m_id; }
75 
81  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 
88  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
89 
95  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
96 
102  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
103 
109  inline UpdateCachePolicy2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;}
110 
116  inline UpdateCachePolicy2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
117 
123  inline UpdateCachePolicy2020_05_31Request& WithId(const char* value) { SetId(value); return *this;}
124 
125 
131  inline const Aws::String& GetIfMatch() const{ return m_ifMatch; }
132 
138  inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
139 
145  inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; }
146 
152  inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); }
153 
159  inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); }
160 
166  inline UpdateCachePolicy2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;}
167 
173  inline UpdateCachePolicy2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;}
174 
180  inline UpdateCachePolicy2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;}
181 
182  private:
183 
184  CachePolicyConfig m_cachePolicyConfig;
185  bool m_cachePolicyConfigHasBeenSet;
186 
187  Aws::String m_id;
188  bool m_idHasBeenSet;
189 
190  Aws::String m_ifMatch;
191  bool m_ifMatchHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace CloudFront
196 } // namespace Aws
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::WithIfMatch
UpdateCachePolicy2020_05_31Request & WithIfMatch(const char *value)
Definition: UpdateCachePolicy2020_05_31Request.h:180
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::WithCachePolicyConfig
UpdateCachePolicy2020_05_31Request & WithCachePolicyConfig(const CachePolicyConfig &value)
Definition: UpdateCachePolicy2020_05_31Request.h:61
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::GetCachePolicyConfig
const CachePolicyConfig & GetCachePolicyConfig() const
Definition: UpdateCachePolicy2020_05_31Request.h:41
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CloudFrontRequest.h
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::SetId
void SetId(const Aws::String &value)
Definition: UpdateCachePolicy2020_05_31Request.h:88
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::SetCachePolicyConfig
void SetCachePolicyConfig(CachePolicyConfig &&value)
Definition: UpdateCachePolicy2020_05_31Request.h:56
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::WithIfMatch
UpdateCachePolicy2020_05_31Request & WithIfMatch(Aws::String &&value)
Definition: UpdateCachePolicy2020_05_31Request.h:173
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::WithId
UpdateCachePolicy2020_05_31Request & WithId(const char *value)
Definition: UpdateCachePolicy2020_05_31Request.h:123
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateCachePolicy2020_05_31Request.h:81
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::SetId
void SetId(const char *value)
Definition: UpdateCachePolicy2020_05_31Request.h:102
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::GetId
const Aws::String & GetId() const
Definition: UpdateCachePolicy2020_05_31Request.h:74
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::WithIfMatch
UpdateCachePolicy2020_05_31Request & WithIfMatch(const Aws::String &value)
Definition: UpdateCachePolicy2020_05_31Request.h:166
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateCachePolicy2020_05_31Request.h:31
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::SetCachePolicyConfig
void SetCachePolicyConfig(const CachePolicyConfig &value)
Definition: UpdateCachePolicy2020_05_31Request.h:51
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::SetId
void SetId(Aws::String &&value)
Definition: UpdateCachePolicy2020_05_31Request.h:95
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::WithId
UpdateCachePolicy2020_05_31Request & WithId(const Aws::String &value)
Definition: UpdateCachePolicy2020_05_31Request.h:109
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::SetIfMatch
void SetIfMatch(const Aws::String &value)
Definition: UpdateCachePolicy2020_05_31Request.h:145
AWSString.h
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::SetIfMatch
void SetIfMatch(Aws::String &&value)
Definition: UpdateCachePolicy2020_05_31Request.h:152
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request
Definition: UpdateCachePolicy2020_05_31Request.h:23
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CachePolicyConfig
Definition: CachePolicyConfig.h:43
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CloudFront_EXPORTS.h
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::WithId
UpdateCachePolicy2020_05_31Request & WithId(Aws::String &&value)
Definition: UpdateCachePolicy2020_05_31Request.h:116
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::CachePolicyConfigHasBeenSet
bool CachePolicyConfigHasBeenSet() const
Definition: UpdateCachePolicy2020_05_31Request.h:46
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::UpdateCachePolicy2020_05_31Request
UpdateCachePolicy2020_05_31Request()
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::UpdateCachePolicy2020_05_31Request::SetIfMatch
void SetIfMatch(const char *value)
Definition: UpdateCachePolicy2020_05_31Request.h:159
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::IfMatchHasBeenSet
bool IfMatchHasBeenSet() const
Definition: UpdateCachePolicy2020_05_31Request.h:138
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::WithCachePolicyConfig
UpdateCachePolicy2020_05_31Request & WithCachePolicyConfig(CachePolicyConfig &&value)
Definition: UpdateCachePolicy2020_05_31Request.h:66
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::UpdateCachePolicy2020_05_31Request::GetIfMatch
const Aws::String & GetIfMatch() const
Definition: UpdateCachePolicy2020_05_31Request.h:131
CachePolicyConfig.h