AWS SDK for C++  1.9.44
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 AlexaForBusiness
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 
42  inline const Aws::String& GetArn() const{ return m_arn; }
43 
47  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 
52  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 
57  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
58 
62  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
63 
67  inline TagResourceRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 
72  inline TagResourceRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 
77  inline TagResourceRequest& WithArn(const char* value) { SetArn(value); return *this;}
78 
79 
84  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
85 
90  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 
96  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 
102  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 
108  inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
109 
114  inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
115 
120  inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
121 
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_arn;
131  bool m_arnHasBeenSet;
132 
133  Aws::Vector<Tag> m_tags;
134  bool m_tagsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace AlexaForBusiness
139 } // namespace Aws
Aws::AlexaForBusiness::Model::TagResourceRequest::SetArn
void SetArn(const char *value)
Definition: TagResourceRequest.h:62
Aws::AlexaForBusiness::Model::TagResourceRequest::WithArn
TagResourceRequest & WithArn(const char *value)
Definition: TagResourceRequest.h:77
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::TagResourceRequest
Definition: TagResourceRequest.h:24
Aws::AlexaForBusiness::Model::TagResourceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TagResourceRequest.h:84
Aws::AlexaForBusiness::Model::TagResourceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TagResourceRequest.h:102
Aws::AlexaForBusiness::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: TagResourceRequest.h:108
Aws::AlexaForBusiness::Model::TagResourceRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: TagResourceRequest.h:47
Aws::AlexaForBusiness::Model::TagResourceRequest::TagResourceRequest
TagResourceRequest()
Tag.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::TagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: TagResourceRequest.h:114
AWSVector.h
Aws::AlexaForBusiness::Model::TagResourceRequest::WithArn
TagResourceRequest & WithArn(Aws::String &&value)
Definition: TagResourceRequest.h:72
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::TagResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AlexaForBusiness::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Tag &value)
Definition: TagResourceRequest.h:120
Aws::AlexaForBusiness::Model::TagResourceRequest::WithArn
TagResourceRequest & WithArn(const Aws::String &value)
Definition: TagResourceRequest.h:67
Aws::AlexaForBusiness::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Tag &&value)
Definition: TagResourceRequest.h:126
Aws::AlexaForBusiness::Model::Tag
Definition: Tag.h:33
AWSString.h
Aws::AlexaForBusiness::Model::TagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResourceRequest.h:32
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::TagResourceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TagResourceRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::TagResourceRequest::GetArn
const Aws::String & GetArn() const
Definition: TagResourceRequest.h:42
Aws::AlexaForBusiness::Model::TagResourceRequest::SetArn
void SetArn(Aws::String &&value)
Definition: TagResourceRequest.h:57
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::AlexaForBusiness::Model::TagResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResourceRequest.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::TagResourceRequest::SetArn
void SetArn(const Aws::String &value)
Definition: TagResourceRequest.h:52
AlexaForBusinessRequest.h