AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ConnectionAlias.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace WorkSpaces {
23namespace Model {
24
35 public:
36 AWS_WORKSPACES_API ConnectionAlias() = default;
37 AWS_WORKSPACES_API ConnectionAlias(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_WORKSPACES_API ConnectionAlias& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
47 inline const Aws::String& GetConnectionString() const { return m_connectionString; }
48 inline bool ConnectionStringHasBeenSet() const { return m_connectionStringHasBeenSet; }
49 template <typename ConnectionStringT = Aws::String>
50 void SetConnectionString(ConnectionStringT&& value) {
51 m_connectionStringHasBeenSet = true;
52 m_connectionString = std::forward<ConnectionStringT>(value);
53 }
54 template <typename ConnectionStringT = Aws::String>
55 ConnectionAlias& WithConnectionString(ConnectionStringT&& value) {
56 SetConnectionString(std::forward<ConnectionStringT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetAliasId() const { return m_aliasId; }
66 inline bool AliasIdHasBeenSet() const { return m_aliasIdHasBeenSet; }
67 template <typename AliasIdT = Aws::String>
68 void SetAliasId(AliasIdT&& value) {
69 m_aliasIdHasBeenSet = true;
70 m_aliasId = std::forward<AliasIdT>(value);
71 }
72 template <typename AliasIdT = Aws::String>
73 ConnectionAlias& WithAliasId(AliasIdT&& value) {
74 SetAliasId(std::forward<AliasIdT>(value));
75 return *this;
76 }
78
80
83 inline ConnectionAliasState GetState() const { return m_state; }
84 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
85 inline void SetState(ConnectionAliasState value) {
86 m_stateHasBeenSet = true;
87 m_state = value;
88 }
90 SetState(value);
91 return *this;
92 }
94
96
100 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
101 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
102 template <typename OwnerAccountIdT = Aws::String>
103 void SetOwnerAccountId(OwnerAccountIdT&& value) {
104 m_ownerAccountIdHasBeenSet = true;
105 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
106 }
107 template <typename OwnerAccountIdT = Aws::String>
108 ConnectionAlias& WithOwnerAccountId(OwnerAccountIdT&& value) {
109 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<ConnectionAliasAssociation>& GetAssociations() const { return m_associations; }
119 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
120 template <typename AssociationsT = Aws::Vector<ConnectionAliasAssociation>>
121 void SetAssociations(AssociationsT&& value) {
122 m_associationsHasBeenSet = true;
123 m_associations = std::forward<AssociationsT>(value);
124 }
125 template <typename AssociationsT = Aws::Vector<ConnectionAliasAssociation>>
126 ConnectionAlias& WithAssociations(AssociationsT&& value) {
127 SetAssociations(std::forward<AssociationsT>(value));
128 return *this;
129 }
130 template <typename AssociationsT = ConnectionAliasAssociation>
131 ConnectionAlias& AddAssociations(AssociationsT&& value) {
132 m_associationsHasBeenSet = true;
133 m_associations.emplace_back(std::forward<AssociationsT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_connectionString;
139
140 Aws::String m_aliasId;
141
143
144 Aws::String m_ownerAccountId;
145
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;
152};
153
154} // namespace Model
155} // namespace WorkSpaces
156} // namespace Aws
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)
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)
ConnectionAlias & WithOwnerAccountId(OwnerAccountIdT &&value)
void SetConnectionString(ConnectionStringT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector