AWS SDK for C++  1.9.14
AWS SDK for C++
DeleteCachePolicy2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudFront
15 {
16 namespace 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 "DeleteCachePolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetId() const{ return m_id; }
42 
47  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
71  inline DeleteCachePolicy2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
77  inline DeleteCachePolicy2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 
83  inline DeleteCachePolicy2020_05_31Request& WithId(const char* value) { SetId(value); return *this;}
84 
85 
92  inline const Aws::String& GetIfMatch() const{ return m_ifMatch; }
93 
100  inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
101 
108  inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; }
109 
116  inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); }
117 
124  inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); }
125 
132  inline DeleteCachePolicy2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;}
133 
140  inline DeleteCachePolicy2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;}
141 
148  inline DeleteCachePolicy2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;}
149 
150  private:
151 
152  Aws::String m_id;
153  bool m_idHasBeenSet;
154 
155  Aws::String m_ifMatch;
156  bool m_ifMatchHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace CloudFront
161 } // namespace Aws
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::SetIfMatch
void SetIfMatch(Aws::String &&value)
Definition: DeleteCachePolicy2020_05_31Request.h:116
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CloudFrontRequest.h
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::WithIfMatch
DeleteCachePolicy2020_05_31Request & WithIfMatch(const Aws::String &value)
Definition: DeleteCachePolicy2020_05_31Request.h:132
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::SetIfMatch
void SetIfMatch(const char *value)
Definition: DeleteCachePolicy2020_05_31Request.h:124
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::SetId
void SetId(Aws::String &&value)
Definition: DeleteCachePolicy2020_05_31Request.h:59
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request
Definition: DeleteCachePolicy2020_05_31Request.h:22
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::WithId
DeleteCachePolicy2020_05_31Request & WithId(const Aws::String &value)
Definition: DeleteCachePolicy2020_05_31Request.h:71
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::WithIfMatch
DeleteCachePolicy2020_05_31Request & WithIfMatch(const char *value)
Definition: DeleteCachePolicy2020_05_31Request.h:148
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::GetId
const Aws::String & GetId() const
Definition: DeleteCachePolicy2020_05_31Request.h:41
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::GetIfMatch
const Aws::String & GetIfMatch() const
Definition: DeleteCachePolicy2020_05_31Request.h:92
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::WithId
DeleteCachePolicy2020_05_31Request & WithId(const char *value)
Definition: DeleteCachePolicy2020_05_31Request.h:83
AWSString.h
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::WithId
DeleteCachePolicy2020_05_31Request & WithId(Aws::String &&value)
Definition: DeleteCachePolicy2020_05_31Request.h:77
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::SetId
void SetId(const Aws::String &value)
Definition: DeleteCachePolicy2020_05_31Request.h:53
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::IdHasBeenSet
bool IdHasBeenSet() const
Definition: DeleteCachePolicy2020_05_31Request.h:47
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::IfMatchHasBeenSet
bool IfMatchHasBeenSet() const
Definition: DeleteCachePolicy2020_05_31Request.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::SetId
void SetId(const char *value)
Definition: DeleteCachePolicy2020_05_31Request.h:65
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::DeleteCachePolicy2020_05_31Request
DeleteCachePolicy2020_05_31Request()
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::WithIfMatch
DeleteCachePolicy2020_05_31Request & WithIfMatch(Aws::String &&value)
Definition: DeleteCachePolicy2020_05_31Request.h:140
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteCachePolicy2020_05_31Request.h:30
Aws::CloudFront::Model::DeleteCachePolicy2020_05_31Request::SetIfMatch
void SetIfMatch(const Aws::String &value)
Definition: DeleteCachePolicy2020_05_31Request.h:108