AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
Environment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/interconnect/Interconnect_EXPORTS.h>
10#include <aws/interconnect/model/Bandwidths.h>
11#include <aws/interconnect/model/EnvironmentState.h>
12#include <aws/interconnect/model/Provider.h>
13#include <aws/interconnect/model/RemoteAccountIdentifierType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace Interconnect {
24namespace Model {
25
36 public:
37 AWS_INTERCONNECT_API Environment() = default;
38 AWS_INTERCONNECT_API Environment(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_INTERCONNECT_API Environment& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
46 inline const Provider& GetProvider() const { return m_provider; }
47 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
48 template <typename ProviderT = Provider>
49 void SetProvider(ProviderT&& value) {
50 m_providerHasBeenSet = true;
51 m_provider = std::forward<ProviderT>(value);
52 }
53 template <typename ProviderT = Provider>
54 Environment& WithProvider(ProviderT&& value) {
55 SetProvider(std::forward<ProviderT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetLocation() const { return m_location; }
66 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
67 template <typename LocationT = Aws::String>
68 void SetLocation(LocationT&& value) {
69 m_locationHasBeenSet = true;
70 m_location = std::forward<LocationT>(value);
71 }
72 template <typename LocationT = Aws::String>
73 Environment& WithLocation(LocationT&& value) {
74 SetLocation(std::forward<LocationT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
84 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
85 template <typename EnvironmentIdT = Aws::String>
86 void SetEnvironmentId(EnvironmentIdT&& value) {
87 m_environmentIdHasBeenSet = true;
88 m_environmentId = std::forward<EnvironmentIdT>(value);
89 }
90 template <typename EnvironmentIdT = Aws::String>
91 Environment& WithEnvironmentId(EnvironmentIdT&& value) {
92 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
93 return *this;
94 }
96
98
106 inline EnvironmentState GetState() const { return m_state; }
107 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
108 inline void SetState(EnvironmentState value) {
109 m_stateHasBeenSet = true;
110 m_state = value;
111 }
113 SetState(value);
114 return *this;
115 }
117
119
123 inline const Bandwidths& GetBandwidths() const { return m_bandwidths; }
124 inline bool BandwidthsHasBeenSet() const { return m_bandwidthsHasBeenSet; }
125 template <typename BandwidthsT = Bandwidths>
126 void SetBandwidths(BandwidthsT&& value) {
127 m_bandwidthsHasBeenSet = true;
128 m_bandwidths = std::forward<BandwidthsT>(value);
129 }
130 template <typename BandwidthsT = Bandwidths>
131 Environment& WithBandwidths(BandwidthsT&& value) {
132 SetBandwidths(std::forward<BandwidthsT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::String& GetType() const { return m_type; }
143 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
144 template <typename TypeT = Aws::String>
145 void SetType(TypeT&& value) {
146 m_typeHasBeenSet = true;
147 m_type = std::forward<TypeT>(value);
148 }
149 template <typename TypeT = Aws::String>
150 Environment& WithType(TypeT&& value) {
151 SetType(std::forward<TypeT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::String& GetActivationPageUrl() const { return m_activationPageUrl; }
162 inline bool ActivationPageUrlHasBeenSet() const { return m_activationPageUrlHasBeenSet; }
163 template <typename ActivationPageUrlT = Aws::String>
164 void SetActivationPageUrl(ActivationPageUrlT&& value) {
165 m_activationPageUrlHasBeenSet = true;
166 m_activationPageUrl = std::forward<ActivationPageUrlT>(value);
167 }
168 template <typename ActivationPageUrlT = Aws::String>
169 Environment& WithActivationPageUrl(ActivationPageUrlT&& value) {
170 SetActivationPageUrl(std::forward<ActivationPageUrlT>(value));
171 return *this;
172 }
174
176
181 inline RemoteAccountIdentifierType GetRemoteIdentifierType() const { return m_remoteIdentifierType; }
182 inline bool RemoteIdentifierTypeHasBeenSet() const { return m_remoteIdentifierTypeHasBeenSet; }
184 m_remoteIdentifierTypeHasBeenSet = true;
185 m_remoteIdentifierType = value;
186 }
189 return *this;
190 }
192 private:
193 Provider m_provider;
194
195 Aws::String m_location;
196
197 Aws::String m_environmentId;
198
200
201 Bandwidths m_bandwidths;
202
203 Aws::String m_type;
204
205 Aws::String m_activationPageUrl;
206
208 bool m_providerHasBeenSet = false;
209 bool m_locationHasBeenSet = false;
210 bool m_environmentIdHasBeenSet = false;
211 bool m_stateHasBeenSet = false;
212 bool m_bandwidthsHasBeenSet = false;
213 bool m_typeHasBeenSet = false;
214 bool m_activationPageUrlHasBeenSet = false;
215 bool m_remoteIdentifierTypeHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace Interconnect
220} // namespace Aws
Environment & WithState(EnvironmentState value)
void SetBandwidths(BandwidthsT &&value)
const Aws::String & GetActivationPageUrl() const
AWS_INTERCONNECT_API Environment(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Environment & WithBandwidths(BandwidthsT &&value)
EnvironmentState GetState() const
const Aws::String & GetEnvironmentId() const
Definition Environment.h:83
RemoteAccountIdentifierType GetRemoteIdentifierType() const
Environment & WithLocation(LocationT &&value)
Definition Environment.h:73
const Aws::String & GetLocation() const
Definition Environment.h:65
const Provider & GetProvider() const
Definition Environment.h:46
AWS_INTERCONNECT_API Environment()=default
Environment & WithEnvironmentId(EnvironmentIdT &&value)
Definition Environment.h:91
Environment & WithType(TypeT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
Definition Environment.h:86
void SetState(EnvironmentState value)
void SetRemoteIdentifierType(RemoteAccountIdentifierType value)
const Aws::String & GetType() const
Environment & WithActivationPageUrl(ActivationPageUrlT &&value)
Environment & WithRemoteIdentifierType(RemoteAccountIdentifierType value)
void SetProvider(ProviderT &&value)
Definition Environment.h:49
AWS_INTERCONNECT_API Environment & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Bandwidths & GetBandwidths() const
void SetLocation(LocationT &&value)
Definition Environment.h:68
AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetActivationPageUrl(ActivationPageUrlT &&value)
Environment & WithProvider(ProviderT &&value)
Definition Environment.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String