AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AccountLink.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/AccountLinkStatusEnum.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
29 public:
30 AWS_WORKSPACES_API AccountLink() = default;
31 AWS_WORKSPACES_API AccountLink(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API AccountLink& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetAccountLinkId() const { return m_accountLinkId; }
40 inline bool AccountLinkIdHasBeenSet() const { return m_accountLinkIdHasBeenSet; }
41 template <typename AccountLinkIdT = Aws::String>
42 void SetAccountLinkId(AccountLinkIdT&& value) {
43 m_accountLinkIdHasBeenSet = true;
44 m_accountLinkId = std::forward<AccountLinkIdT>(value);
45 }
46 template <typename AccountLinkIdT = Aws::String>
47 AccountLink& WithAccountLinkId(AccountLinkIdT&& value) {
48 SetAccountLinkId(std::forward<AccountLinkIdT>(value));
49 return *this;
50 }
52
54
57 inline AccountLinkStatusEnum GetAccountLinkStatus() const { return m_accountLinkStatus; }
58 inline bool AccountLinkStatusHasBeenSet() const { return m_accountLinkStatusHasBeenSet; }
60 m_accountLinkStatusHasBeenSet = true;
61 m_accountLinkStatus = value;
62 }
65 return *this;
66 }
68
70
73 inline const Aws::String& GetSourceAccountId() const { return m_sourceAccountId; }
74 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
75 template <typename SourceAccountIdT = Aws::String>
76 void SetSourceAccountId(SourceAccountIdT&& value) {
77 m_sourceAccountIdHasBeenSet = true;
78 m_sourceAccountId = std::forward<SourceAccountIdT>(value);
79 }
80 template <typename SourceAccountIdT = Aws::String>
81 AccountLink& WithSourceAccountId(SourceAccountIdT&& value) {
82 SetSourceAccountId(std::forward<SourceAccountIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetTargetAccountId() const { return m_targetAccountId; }
92 inline bool TargetAccountIdHasBeenSet() const { return m_targetAccountIdHasBeenSet; }
93 template <typename TargetAccountIdT = Aws::String>
94 void SetTargetAccountId(TargetAccountIdT&& value) {
95 m_targetAccountIdHasBeenSet = true;
96 m_targetAccountId = std::forward<TargetAccountIdT>(value);
97 }
98 template <typename TargetAccountIdT = Aws::String>
99 AccountLink& WithTargetAccountId(TargetAccountIdT&& value) {
100 SetTargetAccountId(std::forward<TargetAccountIdT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_accountLinkId;
106
108
109 Aws::String m_sourceAccountId;
110
111 Aws::String m_targetAccountId;
112 bool m_accountLinkIdHasBeenSet = false;
113 bool m_accountLinkStatusHasBeenSet = false;
114 bool m_sourceAccountIdHasBeenSet = false;
115 bool m_targetAccountIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace WorkSpaces
120} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String