AWS SDK for C++
1.8.186
AWS SDK for C++
aws-cpp-sdk-cloud9
include
aws
cloud9
model
TagResourceRequest.h
Go to the documentation of this file.
1
6
#pragma once
7
#include <
aws/cloud9/Cloud9_EXPORTS.h
>
8
#include <
aws/cloud9/Cloud9Request.h
>
9
#include <
aws/core/utils/memory/stl/AWSString.h
>
10
#include <
aws/core/utils/memory/stl/AWSVector.h
>
11
#include <
aws/cloud9/model/Tag.h
>
12
#include <utility>
13
14
namespace
Aws
15
{
16
namespace
Cloud9
17
{
18
namespace
Model
19
{
20
23
class
AWS_CLOUD9_API
TagResourceRequest
:
public
Cloud9Request
24
{
25
public
:
26
TagResourceRequest
();
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
Aws::Cloud9::Model::TagResourceRequest::TagResourceRequest
TagResourceRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition:
HttpTypes.h:53
AWS_CLOUD9_API
#define AWS_CLOUD9_API
Definition:
Cloud9_EXPORTS.h:28
Aws::Cloud9::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition:
TagResourceRequest.h:111
Aws::Cloud9::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(const Aws::String &value)
Definition:
TagResourceRequest.h:73
Cloud9Request.h
Aws::Cloud9::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(const char *value)
Definition:
TagResourceRequest.h:67
Aws::Cloud9::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(Aws::String &&value)
Definition:
TagResourceRequest.h:79
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition:
AWSVector.h:17
Aws::Cloud9::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(Aws::String &&value)
Definition:
TagResourceRequest.h:61
Aws::Cloud9::Model::TagResourceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition:
TagResourceRequest.h:91
Aws::Cloud9::Model::TagResourceRequest
Definition:
TagResourceRequest.h:24
AWSVector.h
Aws::Cloud9::Model::TagResourceRequest::GetResourceARN
const Aws::String & GetResourceARN() const
Definition:
TagResourceRequest.h:43
Aws::Cloud9::Model::TagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Cloud9::Model::TagResourceRequest::ResourceARNHasBeenSet
bool ResourceARNHasBeenSet() const
Definition:
TagResourceRequest.h:49
Tag.h
Aws::Cloud9::Model::TagResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Cloud9::Model::TagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition:
TagResourceRequest.h:32
Aws::Cloud9::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(const Aws::String &value)
Definition:
TagResourceRequest.h:55
Aws::Cloud9::Model::Tag
Definition:
Tag.h:37
AWSString.h
Aws::Cloud9::Model::TagResourceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition:
TagResourceRequest.h:106
Aws::Cloud9::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Tag &value)
Definition:
TagResourceRequest.h:121
Aws::Cloud9::Cloud9Request
Definition:
Cloud9Request.h:17
Aws::Cloud9::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Tag &&value)
Definition:
TagResourceRequest.h:126
Aws
Definition:
AccessManagementClient.h:15
Aws::Cloud9::Model::TagResourceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition:
TagResourceRequest.h:101
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition:
AWSString.h:97
Aws::Cloud9::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition:
TagResourceRequest.h:116
Aws::Cloud9::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(const char *value)
Definition:
TagResourceRequest.h:85
Aws::Cloud9::Model::TagResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition:
TagResourceRequest.h:96
Cloud9_EXPORTS.h
Generated by
1.8.19
Privacy |
Site terms |
Cookie preferences