AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConnectionString(const Aws::String& value) { m_connectionStringHasBeenSet = true; m_connectionString = value; }
56 inline void SetConnectionString(Aws::String&& value) { m_connectionStringHasBeenSet = true; m_connectionString = std::move(value); }
57 inline void SetConnectionString(const char* value) { m_connectionStringHasBeenSet = true; m_connectionString.assign(value); }
58 inline ConnectionAlias& WithConnectionString(const Aws::String& value) { SetConnectionString(value); return *this;}
59 inline ConnectionAlias& WithConnectionString(Aws::String&& value) { SetConnectionString(std::move(value)); return *this;}
60 inline ConnectionAlias& WithConnectionString(const char* value) { SetConnectionString(value); return *this;}
62
64
67 inline const Aws::String& GetAliasId() const{ return m_aliasId; }
68 inline bool AliasIdHasBeenSet() const { return m_aliasIdHasBeenSet; }
69 inline void SetAliasId(const Aws::String& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
70 inline void SetAliasId(Aws::String&& value) { m_aliasIdHasBeenSet = true; m_aliasId = std::move(value); }
71 inline void SetAliasId(const char* value) { m_aliasIdHasBeenSet = true; m_aliasId.assign(value); }
72 inline ConnectionAlias& WithAliasId(const Aws::String& value) { SetAliasId(value); return *this;}
73 inline ConnectionAlias& WithAliasId(Aws::String&& value) { SetAliasId(std::move(value)); return *this;}
74 inline ConnectionAlias& WithAliasId(const char* value) { SetAliasId(value); return *this;}
76
78
81 inline const ConnectionAliasState& GetState() const{ return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(const ConnectionAliasState& value) { m_stateHasBeenSet = true; m_state = value; }
84 inline void SetState(ConnectionAliasState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
85 inline ConnectionAlias& WithState(const ConnectionAliasState& value) { SetState(value); return *this;}
86 inline ConnectionAlias& WithState(ConnectionAliasState&& value) { SetState(std::move(value)); return *this;}
88
90
94 inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
95 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
96 inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
97 inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
98 inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
99 inline ConnectionAlias& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
100 inline ConnectionAlias& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
101 inline ConnectionAlias& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
103
105
108 inline const Aws::Vector<ConnectionAliasAssociation>& GetAssociations() const{ return m_associations; }
109 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
110 inline void SetAssociations(const Aws::Vector<ConnectionAliasAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; }
111 inline void SetAssociations(Aws::Vector<ConnectionAliasAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
114 inline ConnectionAlias& AddAssociations(const ConnectionAliasAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
115 inline ConnectionAlias& AddAssociations(ConnectionAliasAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
117 private:
118
119 Aws::String m_connectionString;
120 bool m_connectionStringHasBeenSet = false;
121
122 Aws::String m_aliasId;
123 bool m_aliasIdHasBeenSet = false;
124
125 ConnectionAliasState m_state;
126 bool m_stateHasBeenSet = false;
127
128 Aws::String m_ownerAccountId;
129 bool m_ownerAccountIdHasBeenSet = false;
130
132 bool m_associationsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace WorkSpaces
137} // namespace Aws
ConnectionAlias & AddAssociations(ConnectionAliasAssociation &&value)
void SetAliasId(const Aws::String &value)
void SetAssociations(Aws::Vector< ConnectionAliasAssociation > &&value)
ConnectionAlias & WithAliasId(const Aws::String &value)
void SetConnectionString(Aws::String &&value)
ConnectionAlias & WithConnectionString(const Aws::String &value)
AWS_WORKSPACES_API ConnectionAlias(Aws::Utils::Json::JsonView jsonValue)
ConnectionAlias & WithAssociations(Aws::Vector< ConnectionAliasAssociation > &&value)
void SetOwnerAccountId(Aws::String &&value)
ConnectionAlias & WithOwnerAccountId(const char *value)
void SetConnectionString(const char *value)
void SetState(const ConnectionAliasState &value)
ConnectionAlias & WithAssociations(const Aws::Vector< ConnectionAliasAssociation > &value)
const Aws::String & GetOwnerAccountId() const
const ConnectionAliasState & GetState() const
AWS_WORKSPACES_API ConnectionAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectionAlias & WithConnectionString(Aws::String &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAliasId() const
const Aws::Vector< ConnectionAliasAssociation > & GetAssociations() const
ConnectionAlias & WithAliasId(Aws::String &&value)
void SetOwnerAccountId(const Aws::String &value)
ConnectionAlias & WithOwnerAccountId(Aws::String &&value)
ConnectionAlias & WithConnectionString(const char *value)
const Aws::String & GetConnectionString() const
void SetOwnerAccountId(const char *value)
void SetAssociations(const Aws::Vector< ConnectionAliasAssociation > &value)
void SetState(ConnectionAliasState &&value)
void SetConnectionString(const Aws::String &value)
ConnectionAlias & WithState(const ConnectionAliasState &value)
ConnectionAlias & WithState(ConnectionAliasState &&value)
ConnectionAlias & WithAliasId(const char *value)
ConnectionAlias & AddAssociations(const ConnectionAliasAssociation &value)
ConnectionAlias & WithOwnerAccountId(const Aws::String &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