AWS SDK for C++  1.9.157
AWS SDK for C++
PathElement.h
Go to the documentation of this file.
1 
6 #pragma once
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 AccessAnalyzer
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline int GetIndex() const{ return m_index; }
46 
50  inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
51 
55  inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
56 
60  inline PathElement& WithIndex(int value) { SetIndex(value); return *this;}
61 
62 
66  inline const Aws::String& GetKey() const{ return m_key; }
67 
71  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
72 
76  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
77 
81  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
82 
86  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
87 
91  inline PathElement& WithKey(const Aws::String& value) { SetKey(value); return *this;}
92 
96  inline PathElement& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
97 
101  inline PathElement& WithKey(const char* value) { SetKey(value); return *this;}
102 
103 
107  inline const Substring& GetSubstring() const{ return m_substring; }
108 
112  inline bool SubstringHasBeenSet() const { return m_substringHasBeenSet; }
113 
117  inline void SetSubstring(const Substring& value) { m_substringHasBeenSet = true; m_substring = value; }
118 
122  inline void SetSubstring(Substring&& value) { m_substringHasBeenSet = true; m_substring = std::move(value); }
123 
127  inline PathElement& WithSubstring(const Substring& value) { SetSubstring(value); return *this;}
128 
132  inline PathElement& WithSubstring(Substring&& value) { SetSubstring(std::move(value)); return *this;}
133 
134 
138  inline const Aws::String& GetValue() const{ return m_value; }
139 
143  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
144 
148  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
149 
153  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
154 
158  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
159 
163  inline PathElement& WithValue(const Aws::String& value) { SetValue(value); return *this;}
164 
168  inline PathElement& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
169 
173  inline PathElement& WithValue(const char* value) { SetValue(value); return *this;}
174 
175  private:
176 
177  int m_index;
178  bool m_indexHasBeenSet;
179 
180  Aws::String m_key;
181  bool m_keyHasBeenSet;
182 
183  Substring m_substring;
184  bool m_substringHasBeenSet;
185 
186  Aws::String m_value;
187  bool m_valueHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace AccessAnalyzer
192 } // namespace Aws
Aws::AccessAnalyzer::Model::PathElement::SetIndex
void SetIndex(int value)
Definition: PathElement.h:55
Aws::AccessAnalyzer::Model::Substring
Definition: Substring.h:31
Aws::AccessAnalyzer::Model::PathElement::SetKey
void SetKey(const Aws::String &value)
Definition: PathElement.h:76
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::PathElement::SetValue
void SetValue(Aws::String &&value)
Definition: PathElement.h:153
Aws::AccessAnalyzer::Model::PathElement::WithSubstring
PathElement & WithSubstring(Substring &&value)
Definition: PathElement.h:132
Aws::AccessAnalyzer::Model::PathElement::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: PathElement.h:71
Aws::AccessAnalyzer::Model::PathElement::PathElement
PathElement(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::PathElement::GetKey
const Aws::String & GetKey() const
Definition: PathElement.h:66
Substring.h
Aws::AccessAnalyzer::Model::PathElement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::PathElement::SetKey
void SetKey(Aws::String &&value)
Definition: PathElement.h:81
Aws::AccessAnalyzer::Model::PathElement::SetSubstring
void SetSubstring(Substring &&value)
Definition: PathElement.h:122
Aws::AccessAnalyzer::Model::PathElement::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: PathElement.h:143
Aws::AccessAnalyzer::Model::PathElement::SetSubstring
void SetSubstring(const Substring &value)
Definition: PathElement.h:117
Aws::AccessAnalyzer::Model::PathElement::SetValue
void SetValue(const Aws::String &value)
Definition: PathElement.h:148
Aws::AccessAnalyzer::Model::PathElement::WithValue
PathElement & WithValue(Aws::String &&value)
Definition: PathElement.h:168
Aws::AccessAnalyzer::Model::PathElement::WithValue
PathElement & WithValue(const Aws::String &value)
Definition: PathElement.h:163
Aws::AccessAnalyzer::Model::PathElement::SubstringHasBeenSet
bool SubstringHasBeenSet() const
Definition: PathElement.h:112
Aws::AccessAnalyzer::Model::PathElement
Definition: PathElement.h:34
Aws::AccessAnalyzer::Model::PathElement::WithKey
PathElement & WithKey(Aws::String &&value)
Definition: PathElement.h:96
Aws::AccessAnalyzer::Model::PathElement::GetIndex
int GetIndex() const
Definition: PathElement.h:45
Aws::AccessAnalyzer::Model::PathElement::WithIndex
PathElement & WithIndex(int value)
Definition: PathElement.h:60
Aws::AccessAnalyzer::Model::PathElement::WithKey
PathElement & WithKey(const Aws::String &value)
Definition: PathElement.h:91
Aws::AccessAnalyzer::Model::PathElement::GetSubstring
const Substring & GetSubstring() const
Definition: PathElement.h:107
Aws::AccessAnalyzer::Model::PathElement::PathElement
PathElement()
Aws::AccessAnalyzer::Model::PathElement::WithKey
PathElement & WithKey(const char *value)
Definition: PathElement.h:101
Aws::AccessAnalyzer::Model::PathElement::operator=
PathElement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::PathElement::WithValue
PathElement & WithValue(const char *value)
Definition: PathElement.h:173
Aws::AccessAnalyzer::Model::PathElement::SetKey
void SetKey(const char *value)
Definition: PathElement.h:86
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::PathElement::IndexHasBeenSet
bool IndexHasBeenSet() const
Definition: PathElement.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::PathElement::WithSubstring
PathElement & WithSubstring(const Substring &value)
Definition: PathElement.h:127
Aws::AccessAnalyzer::Model::PathElement::GetValue
const Aws::String & GetValue() const
Definition: PathElement.h:138
Aws::AccessAnalyzer::Model::PathElement::SetValue
void SetValue(const char *value)
Definition: PathElement.h:158