AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
AutonomousDatabaseConnectionStrings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/odb/Odb_EXPORTS.h>
11#include <aws/odb/model/DatabaseConnectionStringProfile.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace odb {
23namespace Model {
24
32 public:
33 AWS_ODB_API AutonomousDatabaseConnectionStrings() = default;
37
39
43 inline const Aws::Map<Aws::String, Aws::String>& GetAllConnectionStrings() const { return m_allConnectionStrings; }
44 inline bool AllConnectionStringsHasBeenSet() const { return m_allConnectionStringsHasBeenSet; }
45 template <typename AllConnectionStringsT = Aws::Map<Aws::String, Aws::String>>
46 void SetAllConnectionStrings(AllConnectionStringsT&& value) {
47 m_allConnectionStringsHasBeenSet = true;
48 m_allConnectionStrings = std::forward<AllConnectionStringsT>(value);
49 }
50 template <typename AllConnectionStringsT = Aws::Map<Aws::String, Aws::String>>
52 SetAllConnectionStrings(std::forward<AllConnectionStringsT>(value));
53 return *this;
54 }
55 template <typename AllConnectionStringsKeyT = Aws::String, typename AllConnectionStringsValueT = Aws::String>
56 AutonomousDatabaseConnectionStrings& AddAllConnectionStrings(AllConnectionStringsKeyT&& key, AllConnectionStringsValueT&& value) {
57 m_allConnectionStringsHasBeenSet = true;
58 m_allConnectionStrings.emplace(std::forward<AllConnectionStringsKeyT>(key), std::forward<AllConnectionStringsValueT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetDedicated() const { return m_dedicated; }
69 inline bool DedicatedHasBeenSet() const { return m_dedicatedHasBeenSet; }
70 template <typename DedicatedT = Aws::String>
71 void SetDedicated(DedicatedT&& value) {
72 m_dedicatedHasBeenSet = true;
73 m_dedicated = std::forward<DedicatedT>(value);
74 }
75 template <typename DedicatedT = Aws::String>
77 SetDedicated(std::forward<DedicatedT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetHigh() const { return m_high; }
87 inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
88 template <typename HighT = Aws::String>
89 void SetHigh(HighT&& value) {
90 m_highHasBeenSet = true;
91 m_high = std::forward<HighT>(value);
92 }
93 template <typename HighT = Aws::String>
95 SetHigh(std::forward<HighT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetMedium() const { return m_medium; }
105 inline bool MediumHasBeenSet() const { return m_mediumHasBeenSet; }
106 template <typename MediumT = Aws::String>
107 void SetMedium(MediumT&& value) {
108 m_mediumHasBeenSet = true;
109 m_medium = std::forward<MediumT>(value);
110 }
111 template <typename MediumT = Aws::String>
113 SetMedium(std::forward<MediumT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetLow() const { return m_low; }
123 inline bool LowHasBeenSet() const { return m_lowHasBeenSet; }
124 template <typename LowT = Aws::String>
125 void SetLow(LowT&& value) {
126 m_lowHasBeenSet = true;
127 m_low = std::forward<LowT>(value);
128 }
129 template <typename LowT = Aws::String>
131 SetLow(std::forward<LowT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<DatabaseConnectionStringProfile>& GetProfiles() const { return m_profiles; }
141 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
142 template <typename ProfilesT = Aws::Vector<DatabaseConnectionStringProfile>>
143 void SetProfiles(ProfilesT&& value) {
144 m_profilesHasBeenSet = true;
145 m_profiles = std::forward<ProfilesT>(value);
146 }
147 template <typename ProfilesT = Aws::Vector<DatabaseConnectionStringProfile>>
149 SetProfiles(std::forward<ProfilesT>(value));
150 return *this;
151 }
152 template <typename ProfilesT = DatabaseConnectionStringProfile>
154 m_profilesHasBeenSet = true;
155 m_profiles.emplace_back(std::forward<ProfilesT>(value));
156 return *this;
157 }
159 private:
160 Aws::Map<Aws::String, Aws::String> m_allConnectionStrings;
161
162 Aws::String m_dedicated;
163
164 Aws::String m_high;
165
166 Aws::String m_medium;
167
168 Aws::String m_low;
169
171 bool m_allConnectionStringsHasBeenSet = false;
172 bool m_dedicatedHasBeenSet = false;
173 bool m_highHasBeenSet = false;
174 bool m_mediumHasBeenSet = false;
175 bool m_lowHasBeenSet = false;
176 bool m_profilesHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace odb
181} // namespace Aws
AutonomousDatabaseConnectionStrings & WithProfiles(ProfilesT &&value)
AutonomousDatabaseConnectionStrings & WithDedicated(DedicatedT &&value)
AutonomousDatabaseConnectionStrings & AddAllConnectionStrings(AllConnectionStringsKeyT &&key, AllConnectionStringsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAllConnectionStrings() const
const Aws::Vector< DatabaseConnectionStringProfile > & GetProfiles() const
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ODB_API AutonomousDatabaseConnectionStrings(Aws::Utils::Json::JsonView jsonValue)
AutonomousDatabaseConnectionStrings & WithMedium(MediumT &&value)
AutonomousDatabaseConnectionStrings & WithAllConnectionStrings(AllConnectionStringsT &&value)
AutonomousDatabaseConnectionStrings & AddProfiles(ProfilesT &&value)
AWS_ODB_API AutonomousDatabaseConnectionStrings & operator=(Aws::Utils::Json::JsonView jsonValue)
AutonomousDatabaseConnectionStrings & WithHigh(HighT &&value)
AutonomousDatabaseConnectionStrings & WithLow(LowT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue