7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11#include <aws/workspaces/model/ConnectionAliasAssociation.h>
12#include <aws/workspaces/model/ConnectionAliasState.h>
37 AWS_WORKSPACES_API
ConnectionAlias(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_WORKSPACES_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
49 template <
typename ConnectionStringT = Aws::String>
51 m_connectionStringHasBeenSet =
true;
52 m_connectionString = std::forward<ConnectionStringT>(value);
54 template <
typename ConnectionStringT = Aws::String>
67 template <
typename AliasIdT = Aws::String>
69 m_aliasIdHasBeenSet =
true;
70 m_aliasId = std::forward<AliasIdT>(value);
72 template <
typename AliasIdT = Aws::String>
86 m_stateHasBeenSet =
true;
102 template <
typename OwnerAccountIdT = Aws::String>
104 m_ownerAccountIdHasBeenSet =
true;
105 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
107 template <
typename OwnerAccountIdT = Aws::String>
120 template <
typename AssociationsT = Aws::Vector<ConnectionAliasAssociation>>
122 m_associationsHasBeenSet =
true;
123 m_associations = std::forward<AssociationsT>(value);
125 template <
typename AssociationsT = Aws::Vector<ConnectionAliasAssociation>>
130 template <
typename AssociationsT = ConnectionAliasAssociation>
132 m_associationsHasBeenSet =
true;
133 m_associations.emplace_back(std::forward<AssociationsT>(value));
147 bool m_connectionStringHasBeenSet =
false;
148 bool m_aliasIdHasBeenSet =
false;
149 bool m_stateHasBeenSet =
false;
150 bool m_ownerAccountIdHasBeenSet =
false;
151 bool m_associationsHasBeenSet =
false;
bool OwnerAccountIdHasBeenSet() const
ConnectionAliasState GetState() const
void SetAssociations(AssociationsT &&value)
ConnectionAlias & WithAssociations(AssociationsT &&value)
void SetState(ConnectionAliasState value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ConnectionAlias & WithState(ConnectionAliasState value)
bool AssociationsHasBeenSet() const
ConnectionAlias & WithAliasId(AliasIdT &&value)
AWS_WORKSPACES_API ConnectionAlias(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API ConnectionAlias()=default
const Aws::String & GetOwnerAccountId() const
const Aws::String & GetAliasId() const
ConnectionAlias & AddAssociations(AssociationsT &&value)
const Aws::Vector< ConnectionAliasAssociation > & GetAssociations() const
ConnectionAlias & WithConnectionString(ConnectionStringT &&value)
const Aws::String & GetConnectionString() const
void SetOwnerAccountId(OwnerAccountIdT &&value)
AWS_WORKSPACES_API ConnectionAlias & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetAliasId(AliasIdT &&value)
ConnectionAlias & WithOwnerAccountId(OwnerAccountIdT &&value)
void SetConnectionString(ConnectionStringT &&value)
bool ConnectionStringHasBeenSet() const
bool AliasIdHasBeenSet() const
bool StateHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector