AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectionAlias.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/ConnectionAliasState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/ConnectionAliasAssociation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkSpaces
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_WORKSPACES_API ConnectionAlias() = default;
42 AWS_WORKSPACES_API ConnectionAlias(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const Aws::String& GetConnectionString() const { return m_connectionString; }
54 inline bool ConnectionStringHasBeenSet() const { return m_connectionStringHasBeenSet; }
55 template<typename ConnectionStringT = Aws::String>
56 void SetConnectionString(ConnectionStringT&& value) { m_connectionStringHasBeenSet = true; m_connectionString = std::forward<ConnectionStringT>(value); }
57 template<typename ConnectionStringT = Aws::String>
58 ConnectionAlias& WithConnectionString(ConnectionStringT&& value) { SetConnectionString(std::forward<ConnectionStringT>(value)); return *this;}
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) { m_aliasIdHasBeenSet = true; m_aliasId = std::forward<AliasIdT>(value); }
69 template<typename AliasIdT = Aws::String>
70 ConnectionAlias& WithAliasId(AliasIdT&& value) { SetAliasId(std::forward<AliasIdT>(value)); return *this;}
72
74
77 inline ConnectionAliasState GetState() const { return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(ConnectionAliasState value) { m_stateHasBeenSet = true; m_state = value; }
80 inline ConnectionAlias& WithState(ConnectionAliasState value) { SetState(value); return *this;}
82
84
88 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
89 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
90 template<typename OwnerAccountIdT = Aws::String>
91 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
92 template<typename OwnerAccountIdT = Aws::String>
93 ConnectionAlias& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
95
97
100 inline const Aws::Vector<ConnectionAliasAssociation>& GetAssociations() const { return m_associations; }
101 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
102 template<typename AssociationsT = Aws::Vector<ConnectionAliasAssociation>>
103 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
104 template<typename AssociationsT = Aws::Vector<ConnectionAliasAssociation>>
105 ConnectionAlias& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
106 template<typename AssociationsT = ConnectionAliasAssociation>
107 ConnectionAlias& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(value)); return *this; }
109 private:
110
111 Aws::String m_connectionString;
112 bool m_connectionStringHasBeenSet = false;
113
114 Aws::String m_aliasId;
115 bool m_aliasIdHasBeenSet = false;
116
118 bool m_stateHasBeenSet = false;
119
120 Aws::String m_ownerAccountId;
121 bool m_ownerAccountIdHasBeenSet = false;
122
124 bool m_associationsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace WorkSpaces
129} // namespace Aws
ConnectionAliasState GetState() const
void SetAssociations(AssociationsT &&value)
ConnectionAlias & WithAssociations(AssociationsT &&value)
void SetState(ConnectionAliasState value)
AWS_WORKSPACES_API ConnectionAlias(Aws::Utils::Json::JsonView jsonValue)
ConnectionAlias & WithState(ConnectionAliasState value)
ConnectionAlias & WithAliasId(AliasIdT &&value)
AWS_WORKSPACES_API ConnectionAlias()=default
const Aws::String & GetOwnerAccountId() const
AWS_WORKSPACES_API ConnectionAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() 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)
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
Aws::Utils::Json::JsonValue JsonValue