AWS SDK for C++  1.9.124
AWS SDK for C++
ResourceTag.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace DirectConnect
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
47 
51  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
52 
56  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
57 
61  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
62 
66  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
67 
71  inline ResourceTag& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
72 
76  inline ResourceTag& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
77 
81  inline ResourceTag& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
82 
83 
87  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
88 
92  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 
97  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
98 
102  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 
107  inline ResourceTag& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
108 
112  inline ResourceTag& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
113 
117  inline ResourceTag& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
118 
122  inline ResourceTag& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
123 
124  private:
125 
126  Aws::String m_resourceArn;
127  bool m_resourceArnHasBeenSet;
128 
129  Aws::Vector<Tag> m_tags;
130  bool m_tagsHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace DirectConnect
135 } // namespace Aws
Aws::DirectConnect::Model::ResourceTag::AddTags
ResourceTag & AddTags(const Tag &value)
Definition: ResourceTag.h:117
Aws::DirectConnect::Model::ResourceTag::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ResourceTag.h:97
Aws::DirectConnect::Model::ResourceTag::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ResourceTag.h:87
Aws::DirectConnect::Model::Tag
Definition: Tag.h:32
Aws::DirectConnect::Model::ResourceTag::WithTags
ResourceTag & WithTags(const Aws::Vector< Tag > &value)
Definition: ResourceTag.h:107
Aws::DirectConnect::Model::ResourceTag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectConnect::Model::ResourceTag::ResourceTag
ResourceTag(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectConnect::Model::ResourceTag::WithResourceArn
ResourceTag & WithResourceArn(const char *value)
Definition: ResourceTag.h:81
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectConnect::Model::ResourceTag
Definition: ResourceTag.h:35
DirectConnect_EXPORTS.h
AWSVector.h
Aws::DirectConnect::Model::ResourceTag::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ResourceTag.h:46
Aws::DirectConnect::Model::ResourceTag::WithResourceArn
ResourceTag & WithResourceArn(const Aws::String &value)
Definition: ResourceTag.h:71
Tag.h
Aws::DirectConnect::Model::ResourceTag::AddTags
ResourceTag & AddTags(Tag &&value)
Definition: ResourceTag.h:122
Aws::DirectConnect::Model::ResourceTag::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ResourceTag.h:61
Aws::DirectConnect::Model::ResourceTag::WithResourceArn
ResourceTag & WithResourceArn(Aws::String &&value)
Definition: ResourceTag.h:76
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::DirectConnect::Model::ResourceTag::WithTags
ResourceTag & WithTags(Aws::Vector< Tag > &&value)
Definition: ResourceTag.h:112
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DirectConnect::Model::ResourceTag::operator=
ResourceTag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::DirectConnect::Model::ResourceTag::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ResourceTag.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectConnect::Model::ResourceTag::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ResourceTag.h:56
Aws::DirectConnect::Model::ResourceTag::ResourceTag
ResourceTag()
Aws::DirectConnect::Model::ResourceTag::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ResourceTag.h:102
AWS_DIRECTCONNECT_API
#define AWS_DIRECTCONNECT_API
Definition: DirectConnect_EXPORTS.h:28
Aws::DirectConnect::Model::ResourceTag::SetResourceArn
void SetResourceArn(const char *value)
Definition: ResourceTag.h:66
Aws::DirectConnect::Model::ResourceTag::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ResourceTag.h:51