AWS SDK for C++  1.9.158
AWS SDK for C++
ConnectionAliasAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WorkSpaces
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
48  inline const AssociationStatus& GetAssociationStatus() const{ return m_associationStatus; }
49 
53  inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
54 
58  inline void SetAssociationStatus(const AssociationStatus& value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; }
59 
63  inline void SetAssociationStatus(AssociationStatus&& value) { m_associationStatusHasBeenSet = true; m_associationStatus = std::move(value); }
64 
68  inline ConnectionAliasAssociation& WithAssociationStatus(const AssociationStatus& value) { SetAssociationStatus(value); return *this;}
69 
73  inline ConnectionAliasAssociation& WithAssociationStatus(AssociationStatus&& value) { SetAssociationStatus(std::move(value)); return *this;}
74 
75 
80  inline const Aws::String& GetAssociatedAccountId() const{ return m_associatedAccountId; }
81 
86  inline bool AssociatedAccountIdHasBeenSet() const { return m_associatedAccountIdHasBeenSet; }
87 
92  inline void SetAssociatedAccountId(const Aws::String& value) { m_associatedAccountIdHasBeenSet = true; m_associatedAccountId = value; }
93 
98  inline void SetAssociatedAccountId(Aws::String&& value) { m_associatedAccountIdHasBeenSet = true; m_associatedAccountId = std::move(value); }
99 
104  inline void SetAssociatedAccountId(const char* value) { m_associatedAccountIdHasBeenSet = true; m_associatedAccountId.assign(value); }
105 
110  inline ConnectionAliasAssociation& WithAssociatedAccountId(const Aws::String& value) { SetAssociatedAccountId(value); return *this;}
111 
116  inline ConnectionAliasAssociation& WithAssociatedAccountId(Aws::String&& value) { SetAssociatedAccountId(std::move(value)); return *this;}
117 
122  inline ConnectionAliasAssociation& WithAssociatedAccountId(const char* value) { SetAssociatedAccountId(value); return *this;}
123 
124 
128  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
129 
133  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
134 
138  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
139 
143  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
144 
148  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
149 
153  inline ConnectionAliasAssociation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
154 
158  inline ConnectionAliasAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
159 
163  inline ConnectionAliasAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
164 
165 
171  inline const Aws::String& GetConnectionIdentifier() const{ return m_connectionIdentifier; }
172 
178  inline bool ConnectionIdentifierHasBeenSet() const { return m_connectionIdentifierHasBeenSet; }
179 
185  inline void SetConnectionIdentifier(const Aws::String& value) { m_connectionIdentifierHasBeenSet = true; m_connectionIdentifier = value; }
186 
192  inline void SetConnectionIdentifier(Aws::String&& value) { m_connectionIdentifierHasBeenSet = true; m_connectionIdentifier = std::move(value); }
193 
199  inline void SetConnectionIdentifier(const char* value) { m_connectionIdentifierHasBeenSet = true; m_connectionIdentifier.assign(value); }
200 
206  inline ConnectionAliasAssociation& WithConnectionIdentifier(const Aws::String& value) { SetConnectionIdentifier(value); return *this;}
207 
213  inline ConnectionAliasAssociation& WithConnectionIdentifier(Aws::String&& value) { SetConnectionIdentifier(std::move(value)); return *this;}
214 
220  inline ConnectionAliasAssociation& WithConnectionIdentifier(const char* value) { SetConnectionIdentifier(value); return *this;}
221 
222  private:
223 
224  AssociationStatus m_associationStatus;
225  bool m_associationStatusHasBeenSet;
226 
227  Aws::String m_associatedAccountId;
228  bool m_associatedAccountIdHasBeenSet;
229 
230  Aws::String m_resourceId;
231  bool m_resourceIdHasBeenSet;
232 
233  Aws::String m_connectionIdentifier;
234  bool m_connectionIdentifierHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace WorkSpaces
239 } // namespace Aws
WorkSpaces_EXPORTS.h
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::WorkSpaces::Model::ConnectionAliasAssociation::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ConnectionAliasAssociation.h:133
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetAssociatedAccountId
void SetAssociatedAccountId(const Aws::String &value)
Definition: ConnectionAliasAssociation.h:92
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetConnectionIdentifier
void SetConnectionIdentifier(Aws::String &&value)
Definition: ConnectionAliasAssociation.h:192
Aws::WorkSpaces::Model::ConnectionAliasAssociation::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithConnectionIdentifier
ConnectionAliasAssociation & WithConnectionIdentifier(const Aws::String &value)
Definition: ConnectionAliasAssociation.h:206
AssociationStatus.h
Aws::WorkSpaces::Model::ConnectionAliasAssociation::AssociationStatusHasBeenSet
bool AssociationStatusHasBeenSet() const
Definition: ConnectionAliasAssociation.h:53
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetConnectionIdentifier
void SetConnectionIdentifier(const Aws::String &value)
Definition: ConnectionAliasAssociation.h:185
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithResourceId
ConnectionAliasAssociation & WithResourceId(Aws::String &&value)
Definition: ConnectionAliasAssociation.h:158
Aws::WorkSpaces::Model::ConnectionAliasAssociation::ConnectionAliasAssociation
ConnectionAliasAssociation()
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithConnectionIdentifier
ConnectionAliasAssociation & WithConnectionIdentifier(const char *value)
Definition: ConnectionAliasAssociation.h:220
Aws::WorkSpaces::Model::ConnectionAliasAssociation::AssociatedAccountIdHasBeenSet
bool AssociatedAccountIdHasBeenSet() const
Definition: ConnectionAliasAssociation.h:86
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetConnectionIdentifier
void SetConnectionIdentifier(const char *value)
Definition: ConnectionAliasAssociation.h:199
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ConnectionAliasAssociation.h:143
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetAssociationStatus
void SetAssociationStatus(const AssociationStatus &value)
Definition: ConnectionAliasAssociation.h:58
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithAssociatedAccountId
ConnectionAliasAssociation & WithAssociatedAccountId(Aws::String &&value)
Definition: ConnectionAliasAssociation.h:116
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithResourceId
ConnectionAliasAssociation & WithResourceId(const char *value)
Definition: ConnectionAliasAssociation.h:163
Aws::WorkSpaces::Model::ConnectionAliasAssociation::GetConnectionIdentifier
const Aws::String & GetConnectionIdentifier() const
Definition: ConnectionAliasAssociation.h:171
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetResourceId
void SetResourceId(const char *value)
Definition: ConnectionAliasAssociation.h:148
Aws::WorkSpaces::Model::ConnectionAliasAssociation::GetResourceId
const Aws::String & GetResourceId() const
Definition: ConnectionAliasAssociation.h:128
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetAssociationStatus
void SetAssociationStatus(AssociationStatus &&value)
Definition: ConnectionAliasAssociation.h:63
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkSpaces::Model::ConnectionAliasAssociation::GetAssociatedAccountId
const Aws::String & GetAssociatedAccountId() const
Definition: ConnectionAliasAssociation.h:80
Aws::WorkSpaces::Model::ConnectionAliasAssociation::ConnectionAliasAssociation
ConnectionAliasAssociation(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkSpaces::Model::AssociationStatus
AssociationStatus
Definition: AssociationStatus.h:17
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithAssociatedAccountId
ConnectionAliasAssociation & WithAssociatedAccountId(const char *value)
Definition: ConnectionAliasAssociation.h:122
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithAssociationStatus
ConnectionAliasAssociation & WithAssociationStatus(const AssociationStatus &value)
Definition: ConnectionAliasAssociation.h:68
Aws::WorkSpaces::Model::ConnectionAliasAssociation::operator=
ConnectionAliasAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithAssociationStatus
ConnectionAliasAssociation & WithAssociationStatus(AssociationStatus &&value)
Definition: ConnectionAliasAssociation.h:73
Aws::WorkSpaces::Model::ConnectionAliasAssociation::ConnectionIdentifierHasBeenSet
bool ConnectionIdentifierHasBeenSet() const
Definition: ConnectionAliasAssociation.h:178
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetAssociatedAccountId
void SetAssociatedAccountId(Aws::String &&value)
Definition: ConnectionAliasAssociation.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::ConnectionAliasAssociation::GetAssociationStatus
const AssociationStatus & GetAssociationStatus() const
Definition: ConnectionAliasAssociation.h:48
Aws::WorkSpaces::Model::ConnectionAliasAssociation
Definition: ConnectionAliasAssociation.h:37
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithAssociatedAccountId
ConnectionAliasAssociation & WithAssociatedAccountId(const Aws::String &value)
Definition: ConnectionAliasAssociation.h:110
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ConnectionAliasAssociation.h:138
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithResourceId
ConnectionAliasAssociation & WithResourceId(const Aws::String &value)
Definition: ConnectionAliasAssociation.h:153
Aws::WorkSpaces::Model::ConnectionAliasAssociation::SetAssociatedAccountId
void SetAssociatedAccountId(const char *value)
Definition: ConnectionAliasAssociation.h:104
Aws::WorkSpaces::Model::ConnectionAliasAssociation::WithConnectionIdentifier
ConnectionAliasAssociation & WithConnectionIdentifier(Aws::String &&value)
Definition: ConnectionAliasAssociation.h:213