AWS SDK for C++  1.9.108
AWS SDK for C++
TagInfoForResource.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Tag.h>
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 WAFV2
24 {
25 namespace Model
26 {
27 
44  {
45  public:
50 
51 
55  inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
56 
60  inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
61 
65  inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
66 
70  inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
71 
75  inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
76 
80  inline TagInfoForResource& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
81 
85  inline TagInfoForResource& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
86 
90  inline TagInfoForResource& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
91 
92 
96  inline const Aws::Vector<Tag>& GetTagList() const{ return m_tagList; }
97 
101  inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
102 
106  inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
107 
111  inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
112 
116  inline TagInfoForResource& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
117 
121  inline TagInfoForResource& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
122 
126  inline TagInfoForResource& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
127 
131  inline TagInfoForResource& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; }
132 
133  private:
134 
135  Aws::String m_resourceARN;
136  bool m_resourceARNHasBeenSet;
137 
138  Aws::Vector<Tag> m_tagList;
139  bool m_tagListHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace WAFV2
144 } // namespace Aws
Aws::WAFV2::Model::TagInfoForResource::SetTagList
void SetTagList(Aws::Vector< Tag > &&value)
Definition: TagInfoForResource.h:111
Aws::WAFV2::Model::TagInfoForResource::AddTagList
TagInfoForResource & AddTagList(const Tag &value)
Definition: TagInfoForResource.h:126
Aws::WAFV2::Model::TagInfoForResource::WithTagList
TagInfoForResource & WithTagList(Aws::Vector< Tag > &&value)
Definition: TagInfoForResource.h:121
Aws::WAFV2::Model::TagInfoForResource::operator=
TagInfoForResource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::TagInfoForResource::TagInfoForResource
TagInfoForResource(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::TagInfoForResource::WithResourceARN
TagInfoForResource & WithResourceARN(Aws::String &&value)
Definition: TagInfoForResource.h:85
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::TagInfoForResource::WithTagList
TagInfoForResource & WithTagList(const Aws::Vector< Tag > &value)
Definition: TagInfoForResource.h:116
Aws::WAFV2::Model::TagInfoForResource::TagListHasBeenSet
bool TagListHasBeenSet() const
Definition: TagInfoForResource.h:101
Aws::WAFV2::Model::TagInfoForResource::WithResourceARN
TagInfoForResource & WithResourceARN(const char *value)
Definition: TagInfoForResource.h:90
AWSVector.h
Aws::WAFV2::Model::TagInfoForResource::TagInfoForResource
TagInfoForResource()
WAFV2_EXPORTS.h
Aws::WAFV2::Model::TagInfoForResource::SetResourceARN
void SetResourceARN(const Aws::String &value)
Definition: TagInfoForResource.h:65
Aws::WAFV2::Model::TagInfoForResource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::TagInfoForResource::WithResourceARN
TagInfoForResource & WithResourceARN(const Aws::String &value)
Definition: TagInfoForResource.h:80
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::TagInfoForResource::GetTagList
const Aws::Vector< Tag > & GetTagList() const
Definition: TagInfoForResource.h:96
Aws::WAFV2::Model::TagInfoForResource::ResourceARNHasBeenSet
bool ResourceARNHasBeenSet() const
Definition: TagInfoForResource.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::TagInfoForResource::AddTagList
TagInfoForResource & AddTagList(Tag &&value)
Definition: TagInfoForResource.h:131
Aws::WAFV2::Model::TagInfoForResource::SetResourceARN
void SetResourceARN(const char *value)
Definition: TagInfoForResource.h:75
Aws::WAFV2::Model::TagInfoForResource
Definition: TagInfoForResource.h:44
Tag.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::TagInfoForResource::SetTagList
void SetTagList(const Aws::Vector< Tag > &value)
Definition: TagInfoForResource.h:106
Aws::WAFV2::Model::Tag
Definition: Tag.h:41
Aws::WAFV2::Model::TagInfoForResource::SetResourceARN
void SetResourceARN(Aws::String &&value)
Definition: TagInfoForResource.h:70
Aws::WAFV2::Model::TagInfoForResource::GetResourceARN
const Aws::String & GetResourceARN() const
Definition: TagInfoForResource.h:55