AWS SDK for C++  1.8.71
AWS SDK for C++
UntagResource2020_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 "UntagResource"; }
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 UntagResource2020_05_31Request& WithResource(const Aws::String& value) { SetResource(value); return *this;}
75 
79  inline UntagResource2020_05_31Request& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
80 
84  inline UntagResource2020_05_31Request& WithResource(const char* value) { SetResource(value); return *this;}
85 
86 
90  inline const TagKeys& GetTagKeys() const{ return m_tagKeys; }
91 
95  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
96 
100  inline void SetTagKeys(const TagKeys& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
101 
105  inline void SetTagKeys(TagKeys&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
106 
110  inline UntagResource2020_05_31Request& WithTagKeys(const TagKeys& value) { SetTagKeys(value); return *this;}
111 
115  inline UntagResource2020_05_31Request& WithTagKeys(TagKeys&& value) { SetTagKeys(std::move(value)); return *this;}
116 
117  private:
118 
119  Aws::String m_resource;
120  bool m_resourceHasBeenSet;
121 
122  TagKeys m_tagKeys;
123  bool m_tagKeysHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace CloudFront
128 } // namespace Aws
UntagResource2020_05_31Request & WithResource(const char *value)
#define AWS_CLOUDFRONT_API
UntagResource2020_05_31Request & WithTagKeys(const TagKeys &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UntagResource2020_05_31Request & WithTagKeys(TagKeys &&value)
UntagResource2020_05_31Request & WithResource(const Aws::String &value)
UntagResource2020_05_31Request & WithResource(Aws::String &&value)