AWS SDK for C++  1.8.95
AWS SDK for C++
TagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/cloud9/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Cloud9
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
43  inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
44 
49  inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
50 
55  inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
56 
61  inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
62 
67  inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
68 
73  inline TagResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
74 
79  inline TagResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
80 
85  inline TagResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
86 
87 
91  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 
96  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 
101  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102 
106  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 
111  inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
112 
116  inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
117 
121  inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
122 
126  inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
127 
128  private:
129 
130  Aws::String m_resourceARN;
131  bool m_resourceARNHasBeenSet;
132 
133  Aws::Vector<Tag> m_tags;
134  bool m_tagsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace Cloud9
139 } // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
TagResourceRequest & WithTags(Aws::Vector< Tag > &&value)
TagResourceRequest & WithTags(const Aws::Vector< Tag > &value)
TagResourceRequest & WithResourceARN(Aws::String &&value)
TagResourceRequest & AddTags(const Tag &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const Aws::String & GetResourceARN() const
TagResourceRequest & AddTags(Tag &&value)
void SetResourceARN(Aws::String &&value)
TagResourceRequest & WithResourceARN(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetTags(Aws::Vector< Tag > &&value)
TagResourceRequest & WithResourceARN(const Aws::String &value)
void SetResourceARN(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
#define AWS_CLOUD9_API
virtual const char * GetServiceRequestName() const override