AWS SDK for C++  1.9.109
AWS SDK for C++
TagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSOAdmin
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 
46  inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
47 
55  inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
56 
64  inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
65 
73  inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
74 
82  inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
83 
91  inline TagResourceRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
92 
100  inline TagResourceRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
101 
109  inline TagResourceRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
110 
111 
115  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
116 
120  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
121 
125  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
126 
130  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
131 
135  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
136 
140  inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
141 
145  inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
146 
150  inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
151 
152 
156  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
157 
161  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
162 
166  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
167 
171  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
172 
176  inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
177 
181  inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
182 
186  inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
187 
191  inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
192 
193  private:
194 
195  Aws::String m_instanceArn;
196  bool m_instanceArnHasBeenSet;
197 
198  Aws::String m_resourceArn;
199  bool m_resourceArnHasBeenSet;
200 
201  Aws::Vector<Tag> m_tags;
202  bool m_tagsHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace SSOAdmin
207 } // namespace Aws
Aws::SSOAdmin::Model::TagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResourceRequest.h:32
Aws::SSOAdmin::Model::TagResourceRequest::SetInstanceArn
void SetInstanceArn(const Aws::String &value)
Definition: TagResourceRequest.h:64
Aws::SSOAdmin::Model::TagResourceRequest::WithResourceArn
TagResourceRequest & WithResourceArn(const char *value)
Definition: TagResourceRequest.h:150
Aws::SSOAdmin::Model::TagResourceRequest::GetInstanceArn
const Aws::String & GetInstanceArn() const
Definition: TagResourceRequest.h:46
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSOAdmin::Model::TagResourceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TagResourceRequest.h:166
Aws::SSOAdmin::Model::TagResourceRequest::TagResourceRequest
TagResourceRequest()
Aws::SSOAdmin::Model::TagResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: TagResourceRequest.h:135
Aws::SSOAdmin::Model::TagResourceRequest::WithResourceArn
TagResourceRequest & WithResourceArn(Aws::String &&value)
Definition: TagResourceRequest.h:145
Aws::SSOAdmin::Model::TagResourceRequest
Definition: TagResourceRequest.h:24
Aws::SSOAdmin::Model::TagResourceRequest::WithResourceArn
TagResourceRequest & WithResourceArn(const Aws::String &value)
Definition: TagResourceRequest.h:140
Aws::SSOAdmin::Model::TagResourceRequest::SetInstanceArn
void SetInstanceArn(Aws::String &&value)
Definition: TagResourceRequest.h:73
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SSOAdmin::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Tag &value)
Definition: TagResourceRequest.h:186
Aws::SSOAdmin::Model::TagResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResourceRequest.h:161
Aws::SSOAdmin::Model::TagResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: TagResourceRequest.h:130
Aws::SSOAdmin::Model::TagResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: TagResourceRequest.h:115
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
Aws::SSOAdmin::Model::TagResourceRequest::SetInstanceArn
void SetInstanceArn(const char *value)
Definition: TagResourceRequest.h:82
AWSVector.h
Aws::SSOAdmin::Model::TagResourceRequest::WithInstanceArn
TagResourceRequest & WithInstanceArn(const char *value)
Definition: TagResourceRequest.h:109
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::TagResourceRequest::WithInstanceArn
TagResourceRequest & WithInstanceArn(Aws::String &&value)
Definition: TagResourceRequest.h:100
Aws::SSOAdmin::Model::TagResourceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TagResourceRequest.h:171
Aws::SSOAdmin::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: TagResourceRequest.h:181
Tag.h
Aws::SSOAdmin::SSOAdminRequest
Definition: SSOAdminRequest.h:17
Aws::SSOAdmin::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: TagResourceRequest.h:176
Aws::SSOAdmin::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Tag &&value)
Definition: TagResourceRequest.h:191
AWSString.h
Aws::SSOAdmin::Model::Tag
Definition: Tag.h:35
SSOAdminRequest.h
Aws::SSOAdmin::Model::TagResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: TagResourceRequest.h:125
Aws::SSOAdmin::Model::TagResourceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TagResourceRequest.h:156
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::TagResourceRequest::WithInstanceArn
TagResourceRequest & WithInstanceArn(const Aws::String &value)
Definition: TagResourceRequest.h:91
Aws::SSOAdmin::Model::TagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSOAdmin::Model::TagResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: TagResourceRequest.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::TagResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSOAdmin::Model::TagResourceRequest::InstanceArnHasBeenSet
bool InstanceArnHasBeenSet() const
Definition: TagResourceRequest.h:55