AWS SDK for C++  1.9.158
AWS SDK for C++
TagFilter.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ram/RAM_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace RAM
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetTagKey() const{ return m_tagKey; }
46 
50  inline bool TagKeyHasBeenSet() const { return m_tagKeyHasBeenSet; }
51 
55  inline void SetTagKey(const Aws::String& value) { m_tagKeyHasBeenSet = true; m_tagKey = value; }
56 
60  inline void SetTagKey(Aws::String&& value) { m_tagKeyHasBeenSet = true; m_tagKey = std::move(value); }
61 
65  inline void SetTagKey(const char* value) { m_tagKeyHasBeenSet = true; m_tagKey.assign(value); }
66 
70  inline TagFilter& WithTagKey(const Aws::String& value) { SetTagKey(value); return *this;}
71 
75  inline TagFilter& WithTagKey(Aws::String&& value) { SetTagKey(std::move(value)); return *this;}
76 
80  inline TagFilter& WithTagKey(const char* value) { SetTagKey(value); return *this;}
81 
82 
87  inline const Aws::Vector<Aws::String>& GetTagValues() const{ return m_tagValues; }
88 
93  inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
94 
99  inline void SetTagValues(const Aws::Vector<Aws::String>& value) { m_tagValuesHasBeenSet = true; m_tagValues = value; }
100 
105  inline void SetTagValues(Aws::Vector<Aws::String>&& value) { m_tagValuesHasBeenSet = true; m_tagValues = std::move(value); }
106 
111  inline TagFilter& WithTagValues(const Aws::Vector<Aws::String>& value) { SetTagValues(value); return *this;}
112 
117  inline TagFilter& WithTagValues(Aws::Vector<Aws::String>&& value) { SetTagValues(std::move(value)); return *this;}
118 
123  inline TagFilter& AddTagValues(const Aws::String& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
124 
129  inline TagFilter& AddTagValues(Aws::String&& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(std::move(value)); return *this; }
130 
135  inline TagFilter& AddTagValues(const char* value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
136 
137  private:
138 
139  Aws::String m_tagKey;
140  bool m_tagKeyHasBeenSet;
141 
142  Aws::Vector<Aws::String> m_tagValues;
143  bool m_tagValuesHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace RAM
148 } // namespace Aws
Aws::RAM::Model::TagFilter::TagFilter
TagFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::RAM::Model::TagFilter::AddTagValues
TagFilter & AddTagValues(const char *value)
Definition: TagFilter.h:135
Aws::RAM::Model::TagFilter::WithTagKey
TagFilter & WithTagKey(const char *value)
Definition: TagFilter.h:80
Aws::RAM::Model::TagFilter::GetTagValues
const Aws::Vector< Aws::String > & GetTagValues() const
Definition: TagFilter.h:87
Aws::RAM::Model::TagFilter::WithTagKey
TagFilter & WithTagKey(Aws::String &&value)
Definition: TagFilter.h:75
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RAM::Model::TagFilter::SetTagValues
void SetTagValues(Aws::Vector< Aws::String > &&value)
Definition: TagFilter.h:105
Aws::RAM::Model::TagFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RAM::Model::TagFilter::TagKeyHasBeenSet
bool TagKeyHasBeenSet() const
Definition: TagFilter.h:50
Aws::RAM::Model::TagFilter::operator=
TagFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RAM::Model::TagFilter::WithTagValues
TagFilter & WithTagValues(const Aws::Vector< Aws::String > &value)
Definition: TagFilter.h:111
Aws::RAM::Model::TagFilter::SetTagKey
void SetTagKey(Aws::String &&value)
Definition: TagFilter.h:60
Aws::RAM::Model::TagFilter::WithTagValues
TagFilter & WithTagValues(Aws::Vector< Aws::String > &&value)
Definition: TagFilter.h:117
Aws::RAM::Model::TagFilter::SetTagKey
void SetTagKey(const Aws::String &value)
Definition: TagFilter.h:55
Aws::RAM::Model::TagFilter::TagValuesHasBeenSet
bool TagValuesHasBeenSet() const
Definition: TagFilter.h:93
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
RAM_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::RAM::Model::TagFilter::GetTagKey
const Aws::String & GetTagKey() const
Definition: TagFilter.h:45
Aws::RAM::Model::TagFilter
Definition: TagFilter.h:34
AWS_RAM_API
#define AWS_RAM_API
Definition: RAM_EXPORTS.h:28
Aws::RAM::Model::TagFilter::TagFilter
TagFilter()
Aws::RAM::Model::TagFilter::AddTagValues
TagFilter & AddTagValues(Aws::String &&value)
Definition: TagFilter.h:129
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::RAM::Model::TagFilter::AddTagValues
TagFilter & AddTagValues(const Aws::String &value)
Definition: TagFilter.h:123
Aws
Definition: AccessManagementClient.h:15
Aws::RAM::Model::TagFilter::SetTagKey
void SetTagKey(const char *value)
Definition: TagFilter.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RAM::Model::TagFilter::WithTagKey
TagFilter & WithTagKey(const Aws::String &value)
Definition: TagFilter.h:70
Aws::RAM::Model::TagFilter::SetTagValues
void SetTagValues(const Aws::Vector< Aws::String > &value)
Definition: TagFilter.h:99