AWS SDK for C++  1.9.108
AWS SDK for C++
TagCriterionPairForJob.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Macie2
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetKey() const{ return m_key; }
48 
52  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 
57  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
58 
62  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
63 
67  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
68 
72  inline TagCriterionPairForJob& WithKey(const Aws::String& value) { SetKey(value); return *this;}
73 
77  inline TagCriterionPairForJob& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
78 
82  inline TagCriterionPairForJob& WithKey(const char* value) { SetKey(value); return *this;}
83 
84 
88  inline const Aws::String& GetValue() const{ return m_value; }
89 
93  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
94 
98  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
99 
103  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
104 
108  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
109 
113  inline TagCriterionPairForJob& WithValue(const Aws::String& value) { SetValue(value); return *this;}
114 
118  inline TagCriterionPairForJob& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
119 
123  inline TagCriterionPairForJob& WithValue(const char* value) { SetValue(value); return *this;}
124 
125  private:
126 
127  Aws::String m_key;
128  bool m_keyHasBeenSet;
129 
130  Aws::String m_value;
131  bool m_valueHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace Macie2
136 } // namespace Aws
Aws::Macie2::Model::TagCriterionPairForJob::WithKey
TagCriterionPairForJob & WithKey(const Aws::String &value)
Definition: TagCriterionPairForJob.h:72
Aws::Macie2::Model::TagCriterionPairForJob::WithKey
TagCriterionPairForJob & WithKey(Aws::String &&value)
Definition: TagCriterionPairForJob.h:77
Aws::Macie2::Model::TagCriterionPairForJob::WithKey
TagCriterionPairForJob & WithKey(const char *value)
Definition: TagCriterionPairForJob.h:82
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::TagCriterionPairForJob::WithValue
TagCriterionPairForJob & WithValue(const Aws::String &value)
Definition: TagCriterionPairForJob.h:113
Aws::Macie2::Model::TagCriterionPairForJob::TagCriterionPairForJob
TagCriterionPairForJob(Aws::Utils::Json::JsonView jsonValue)
Macie2_EXPORTS.h
Aws::Macie2::Model::TagCriterionPairForJob::GetKey
const Aws::String & GetKey() const
Definition: TagCriterionPairForJob.h:47
Aws::Macie2::Model::TagCriterionPairForJob::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: TagCriterionPairForJob.h:93
Aws::Macie2::Model::TagCriterionPairForJob::WithValue
TagCriterionPairForJob & WithValue(const char *value)
Definition: TagCriterionPairForJob.h:123
Aws::Macie2::Model::TagCriterionPairForJob::operator=
TagCriterionPairForJob & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::TagCriterionPairForJob::SetKey
void SetKey(const char *value)
Definition: TagCriterionPairForJob.h:67
Aws::Macie2::Model::TagCriterionPairForJob::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: TagCriterionPairForJob.h:52
Aws::Macie2::Model::TagCriterionPairForJob::SetKey
void SetKey(Aws::String &&value)
Definition: TagCriterionPairForJob.h:62
Aws::Macie2::Model::TagCriterionPairForJob::SetKey
void SetKey(const Aws::String &value)
Definition: TagCriterionPairForJob.h:57
Aws::Macie2::Model::TagCriterionPairForJob
Definition: TagCriterionPairForJob.h:36
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Macie2::Model::TagCriterionPairForJob::SetValue
void SetValue(const char *value)
Definition: TagCriterionPairForJob.h:108
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::TagCriterionPairForJob::SetValue
void SetValue(const Aws::String &value)
Definition: TagCriterionPairForJob.h:98
Aws::Macie2::Model::TagCriterionPairForJob::SetValue
void SetValue(Aws::String &&value)
Definition: TagCriterionPairForJob.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::TagCriterionPairForJob::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::TagCriterionPairForJob::TagCriterionPairForJob
TagCriterionPairForJob()
Aws::Macie2::Model::TagCriterionPairForJob::WithValue
TagCriterionPairForJob & WithValue(Aws::String &&value)
Definition: TagCriterionPairForJob.h:118
Aws::Macie2::Model::TagCriterionPairForJob::GetValue
const Aws::String & GetValue() const
Definition: TagCriterionPairForJob.h:88