AWS SDK for C++  1.9.126
AWS SDK for C++
TagResource2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace CloudFront
20 {
21 namespace Model
22 {
23 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
45 
49  inline const Aws::String& GetResource() const{ return m_resource; }
50 
54  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
55 
59  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
60 
64  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
65 
69  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
70 
74  inline TagResource2020_05_31Request& WithResource(const Aws::String& value) { SetResource(value); return *this;}
75 
79  inline TagResource2020_05_31Request& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
80 
84  inline TagResource2020_05_31Request& WithResource(const char* value) { SetResource(value); return *this;}
85 
86 
90  inline const Tags& GetTags() const{ return m_tags; }
91 
95  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 
100  inline void SetTags(const Tags& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 
105  inline void SetTags(Tags&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 
110  inline TagResource2020_05_31Request& WithTags(const Tags& value) { SetTags(value); return *this;}
111 
115  inline TagResource2020_05_31Request& WithTags(Tags&& value) { SetTags(std::move(value)); return *this;}
116 
117  private:
118 
119  Aws::String m_resource;
120  bool m_resourceHasBeenSet;
121 
122  Tags m_tags;
123  bool m_tagsHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace CloudFront
128 } // namespace Aws
Aws::CloudFront::Model::TagResource2020_05_31Request::SetTags
void SetTags(const Tags &value)
Definition: TagResource2020_05_31Request.h:100
Aws::Http::URI
Definition: URI.h:32
Aws::CloudFront::Model::TagResource2020_05_31Request::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: TagResource2020_05_31Request.h:54
CloudFrontRequest.h
Aws::CloudFront::Model::TagResource2020_05_31Request::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResource2020_05_31Request.h:95
Aws::CloudFront::Model::TagResource2020_05_31Request::SetResource
void SetResource(Aws::String &&value)
Definition: TagResource2020_05_31Request.h:64
Aws::CloudFront::Model::TagResource2020_05_31Request::GetResource
const Aws::String & GetResource() const
Definition: TagResource2020_05_31Request.h:49
Aws::CloudFront::Model::TagResource2020_05_31Request::WithResource
TagResource2020_05_31Request & WithResource(Aws::String &&value)
Definition: TagResource2020_05_31Request.h:79
Aws::CloudFront::Model::TagResource2020_05_31Request::TagResource2020_05_31Request
TagResource2020_05_31Request()
Aws::CloudFront::Model::TagResource2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::TagResource2020_05_31Request::SetTags
void SetTags(Tags &&value)
Definition: TagResource2020_05_31Request.h:105
Aws::CloudFront::Model::TagResource2020_05_31Request::GetTags
const Tags & GetTags() const
Definition: TagResource2020_05_31Request.h:90
Tags.h
Aws::CloudFront::Model::TagResource2020_05_31Request::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CloudFront::Model::TagResource2020_05_31Request::WithResource
TagResource2020_05_31Request & WithResource(const char *value)
Definition: TagResource2020_05_31Request.h:84
AWSString.h
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
Aws::CloudFront::Model::TagResource2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResource2020_05_31Request.h:39
Aws::CloudFront::Model::TagResource2020_05_31Request
Definition: TagResource2020_05_31Request.h:31
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::TagResource2020_05_31Request::WithTags
TagResource2020_05_31Request & WithTags(Tags &&value)
Definition: TagResource2020_05_31Request.h:115
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::TagResource2020_05_31Request::SetResource
void SetResource(const char *value)
Definition: TagResource2020_05_31Request.h:69
Aws::CloudFront::Model::TagResource2020_05_31Request::SetResource
void SetResource(const Aws::String &value)
Definition: TagResource2020_05_31Request.h:59
Aws::CloudFront::Model::Tags
Definition: Tags.h:33
Aws::CloudFront::Model::TagResource2020_05_31Request::WithTags
TagResource2020_05_31Request & WithTags(const Tags &value)
Definition: TagResource2020_05_31Request.h:110
Aws::CloudFront::Model::TagResource2020_05_31Request::WithResource
TagResource2020_05_31Request & WithResource(const Aws::String &value)
Definition: TagResource2020_05_31Request.h:74