AWS SDK for C++  1.9.14
AWS SDK for C++
GetCachePolicyConfig2020_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 "GetCachePolicyConfig"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
42  inline const Aws::String& GetId() const{ return m_id; }
43 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
60  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 
69  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
70 
78  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
79 
87  inline GetCachePolicyConfig2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;}
88 
96  inline GetCachePolicyConfig2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
97 
105  inline GetCachePolicyConfig2020_05_31Request& WithId(const char* value) { SetId(value); return *this;}
106 
107  private:
108 
109  Aws::String m_id;
110  bool m_idHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace CloudFront
115 } // namespace Aws
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request
Definition: GetCachePolicyConfig2020_05_31Request.h:22
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::SetId
void SetId(Aws::String &&value)
Definition: GetCachePolicyConfig2020_05_31Request.h:69
CloudFrontRequest.h
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::WithId
GetCachePolicyConfig2020_05_31Request & WithId(Aws::String &&value)
Definition: GetCachePolicyConfig2020_05_31Request.h:96
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::WithId
GetCachePolicyConfig2020_05_31Request & WithId(const Aws::String &value)
Definition: GetCachePolicyConfig2020_05_31Request.h:87
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::IdHasBeenSet
bool IdHasBeenSet() const
Definition: GetCachePolicyConfig2020_05_31Request.h:51
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::GetId
const Aws::String & GetId() const
Definition: GetCachePolicyConfig2020_05_31Request.h:42
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCachePolicyConfig2020_05_31Request.h:30
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::SetId
void SetId(const char *value)
Definition: GetCachePolicyConfig2020_05_31Request.h:78
AWSString.h
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::SetId
void SetId(const Aws::String &value)
Definition: GetCachePolicyConfig2020_05_31Request.h:60
Aws::CloudFront::Model::GetCachePolicyConfig2020_05_31Request::WithId
GetCachePolicyConfig2020_05_31Request & WithId(const char *value)
Definition: GetCachePolicyConfig2020_05_31Request.h:105
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::GetCachePolicyConfig2020_05_31Request::GetCachePolicyConfig2020_05_31Request
GetCachePolicyConfig2020_05_31Request()