AWS SDK for C++  1.9.106
AWS SDK for C++
TagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/athena/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Athena
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 
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 
92  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 
98  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 
104  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 
110  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
111 
116  inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
117 
122  inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
123 
128  inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
129 
134  inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
135 
136  private:
137 
138  Aws::String m_resourceARN;
139  bool m_resourceARNHasBeenSet;
140 
141  Aws::Vector<Tag> m_tags;
142  bool m_tagsHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace Athena
147 } // namespace Aws
Tag.h
Aws::Athena::Model::TagResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResourceRequest.h:98
Aws::Athena::Model::TagResourceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TagResourceRequest.h:104
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::TagResourceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TagResourceRequest.h:92
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::TagResourceRequest::ResourceARNHasBeenSet
bool ResourceARNHasBeenSet() const
Definition: TagResourceRequest.h:49
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(const char *value)
Definition: TagResourceRequest.h:85
Aws::Athena::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(const char *value)
Definition: TagResourceRequest.h:67
Aws::Athena::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: TagResourceRequest.h:116
Aws::Athena::Model::TagResourceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TagResourceRequest.h:110
Aws::Athena::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Tag &&value)
Definition: TagResourceRequest.h:134
Aws::Athena::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Tag &value)
Definition: TagResourceRequest.h:128
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Athena::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(Aws::String &&value)
Definition: TagResourceRequest.h:61
AWSVector.h
Aws::Athena::Model::TagResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: TagResourceRequest.h:122
Aws::Athena::Model::TagResourceRequest
Definition: TagResourceRequest.h:24
Aws::Athena::Model::TagResourceRequest::TagResourceRequest
TagResourceRequest()
Aws::Athena::Model::Tag
Definition: Tag.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(const Aws::String &value)
Definition: TagResourceRequest.h:73
Aws::Athena::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(const Aws::String &value)
Definition: TagResourceRequest.h:55
Aws::Athena::Model::TagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
AthenaRequest.h
Aws::Athena::Model::TagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResourceRequest.h:32
Aws::Athena::Model::TagResourceRequest::GetResourceARN
const Aws::String & GetResourceARN() const
Definition: TagResourceRequest.h:43
Aws::Athena::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(Aws::String &&value)
Definition: TagResourceRequest.h:79