AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PathElement.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/Substring.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ACCESSANALYZER_API PathElement();
37 AWS_ACCESSANALYZER_API PathElement(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API PathElement& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetIndex() const{ return m_index; }
47 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
48 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
49 inline PathElement& WithIndex(int value) { SetIndex(value); return *this;}
51
53
56 inline const Aws::String& GetKey() const{ return m_key; }
57 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
58 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
59 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
60 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
61 inline PathElement& WithKey(const Aws::String& value) { SetKey(value); return *this;}
62 inline PathElement& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
63 inline PathElement& WithKey(const char* value) { SetKey(value); return *this;}
65
67
70 inline const Substring& GetSubstring() const{ return m_substring; }
71 inline bool SubstringHasBeenSet() const { return m_substringHasBeenSet; }
72 inline void SetSubstring(const Substring& value) { m_substringHasBeenSet = true; m_substring = value; }
73 inline void SetSubstring(Substring&& value) { m_substringHasBeenSet = true; m_substring = std::move(value); }
74 inline PathElement& WithSubstring(const Substring& value) { SetSubstring(value); return *this;}
75 inline PathElement& WithSubstring(Substring&& value) { SetSubstring(std::move(value)); return *this;}
77
79
82 inline const Aws::String& GetValue() const{ return m_value; }
83 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
84 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
85 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
86 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
87 inline PathElement& WithValue(const Aws::String& value) { SetValue(value); return *this;}
88 inline PathElement& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
89 inline PathElement& WithValue(const char* value) { SetValue(value); return *this;}
91 private:
92
93 int m_index;
94 bool m_indexHasBeenSet = false;
95
96 Aws::String m_key;
97 bool m_keyHasBeenSet = false;
98
99 Substring m_substring;
100 bool m_substringHasBeenSet = false;
101
102 Aws::String m_value;
103 bool m_valueHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace AccessAnalyzer
108} // namespace Aws
const Aws::String & GetKey() const
Definition PathElement.h:56
PathElement & WithValue(Aws::String &&value)
Definition PathElement.h:88
AWS_ACCESSANALYZER_API PathElement()
void SetSubstring(const Substring &value)
Definition PathElement.h:72
void SetValue(const Aws::String &value)
Definition PathElement.h:84
PathElement & WithKey(Aws::String &&value)
Definition PathElement.h:62
PathElement & WithValue(const Aws::String &value)
Definition PathElement.h:87
PathElement & WithKey(const Aws::String &value)
Definition PathElement.h:61
void SetKey(Aws::String &&value)
Definition PathElement.h:59
PathElement & WithSubstring(Substring &&value)
Definition PathElement.h:75
void SetKey(const Aws::String &value)
Definition PathElement.h:58
AWS_ACCESSANALYZER_API PathElement(Aws::Utils::Json::JsonView jsonValue)
void SetValue(Aws::String &&value)
Definition PathElement.h:85
PathElement & WithIndex(int value)
Definition PathElement.h:49
const Substring & GetSubstring() const
Definition PathElement.h:70
PathElement & WithSubstring(const Substring &value)
Definition PathElement.h:74
PathElement & WithKey(const char *value)
Definition PathElement.h:63
const Aws::String & GetValue() const
Definition PathElement.h:82
void SetSubstring(Substring &&value)
Definition PathElement.h:73
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCESSANALYZER_API PathElement & operator=(Aws::Utils::Json::JsonView jsonValue)
PathElement & WithValue(const char *value)
Definition PathElement.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue