AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ConnectionAliasAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10#include <aws/workspaces/model/AssociationStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace WorkSpaces {
21namespace Model {
22
33 public:
34 AWS_WORKSPACES_API ConnectionAliasAssociation() = default;
35 AWS_WORKSPACES_API ConnectionAliasAssociation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACES_API ConnectionAliasAssociation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline AssociationStatus GetAssociationStatus() const { return m_associationStatus; }
44 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
46 m_associationStatusHasBeenSet = true;
47 m_associationStatus = value;
48 }
54
56
60 inline const Aws::String& GetAssociatedAccountId() const { return m_associatedAccountId; }
61 inline bool AssociatedAccountIdHasBeenSet() const { return m_associatedAccountIdHasBeenSet; }
62 template <typename AssociatedAccountIdT = Aws::String>
63 void SetAssociatedAccountId(AssociatedAccountIdT&& value) {
64 m_associatedAccountIdHasBeenSet = true;
65 m_associatedAccountId = std::forward<AssociatedAccountIdT>(value);
66 }
67 template <typename AssociatedAccountIdT = Aws::String>
68 ConnectionAliasAssociation& WithAssociatedAccountId(AssociatedAccountIdT&& value) {
69 SetAssociatedAccountId(std::forward<AssociatedAccountIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetResourceId() const { return m_resourceId; }
79 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
80 template <typename ResourceIdT = Aws::String>
81 void SetResourceId(ResourceIdT&& value) {
82 m_resourceIdHasBeenSet = true;
83 m_resourceId = std::forward<ResourceIdT>(value);
84 }
85 template <typename ResourceIdT = Aws::String>
87 SetResourceId(std::forward<ResourceIdT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetConnectionIdentifier() const { return m_connectionIdentifier; }
99 inline bool ConnectionIdentifierHasBeenSet() const { return m_connectionIdentifierHasBeenSet; }
100 template <typename ConnectionIdentifierT = Aws::String>
101 void SetConnectionIdentifier(ConnectionIdentifierT&& value) {
102 m_connectionIdentifierHasBeenSet = true;
103 m_connectionIdentifier = std::forward<ConnectionIdentifierT>(value);
104 }
105 template <typename ConnectionIdentifierT = Aws::String>
106 ConnectionAliasAssociation& WithConnectionIdentifier(ConnectionIdentifierT&& value) {
107 SetConnectionIdentifier(std::forward<ConnectionIdentifierT>(value));
108 return *this;
109 }
111 private:
113
114 Aws::String m_associatedAccountId;
115
116 Aws::String m_resourceId;
117
118 Aws::String m_connectionIdentifier;
119 bool m_associationStatusHasBeenSet = false;
120 bool m_associatedAccountIdHasBeenSet = false;
121 bool m_resourceIdHasBeenSet = false;
122 bool m_connectionIdentifierHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace WorkSpaces
127} // namespace Aws
AWS_WORKSPACES_API ConnectionAliasAssociation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API ConnectionAliasAssociation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API ConnectionAliasAssociation()=default
ConnectionAliasAssociation & WithConnectionIdentifier(ConnectionIdentifierT &&value)
ConnectionAliasAssociation & WithAssociationStatus(AssociationStatus value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ConnectionAliasAssociation & WithResourceId(ResourceIdT &&value)
ConnectionAliasAssociation & WithAssociatedAccountId(AssociatedAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String