AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountLink.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/AccountLinkStatusEnum.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkSpaces
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_WORKSPACES_API AccountLink() = default;
36 AWS_WORKSPACES_API AccountLink(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKSPACES_API AccountLink& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccountLinkId() const { return m_accountLinkId; }
46 inline bool AccountLinkIdHasBeenSet() const { return m_accountLinkIdHasBeenSet; }
47 template<typename AccountLinkIdT = Aws::String>
48 void SetAccountLinkId(AccountLinkIdT&& value) { m_accountLinkIdHasBeenSet = true; m_accountLinkId = std::forward<AccountLinkIdT>(value); }
49 template<typename AccountLinkIdT = Aws::String>
50 AccountLink& WithAccountLinkId(AccountLinkIdT&& value) { SetAccountLinkId(std::forward<AccountLinkIdT>(value)); return *this;}
52
54
57 inline AccountLinkStatusEnum GetAccountLinkStatus() const { return m_accountLinkStatus; }
58 inline bool AccountLinkStatusHasBeenSet() const { return m_accountLinkStatusHasBeenSet; }
59 inline void SetAccountLinkStatus(AccountLinkStatusEnum value) { m_accountLinkStatusHasBeenSet = true; m_accountLinkStatus = value; }
62
64
67 inline const Aws::String& GetSourceAccountId() const { return m_sourceAccountId; }
68 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
69 template<typename SourceAccountIdT = Aws::String>
70 void SetSourceAccountId(SourceAccountIdT&& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = std::forward<SourceAccountIdT>(value); }
71 template<typename SourceAccountIdT = Aws::String>
72 AccountLink& WithSourceAccountId(SourceAccountIdT&& value) { SetSourceAccountId(std::forward<SourceAccountIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetTargetAccountId() const { return m_targetAccountId; }
80 inline bool TargetAccountIdHasBeenSet() const { return m_targetAccountIdHasBeenSet; }
81 template<typename TargetAccountIdT = Aws::String>
82 void SetTargetAccountId(TargetAccountIdT&& value) { m_targetAccountIdHasBeenSet = true; m_targetAccountId = std::forward<TargetAccountIdT>(value); }
83 template<typename TargetAccountIdT = Aws::String>
84 AccountLink& WithTargetAccountId(TargetAccountIdT&& value) { SetTargetAccountId(std::forward<TargetAccountIdT>(value)); return *this;}
86 private:
87
88 Aws::String m_accountLinkId;
89 bool m_accountLinkIdHasBeenSet = false;
90
92 bool m_accountLinkStatusHasBeenSet = false;
93
94 Aws::String m_sourceAccountId;
95 bool m_sourceAccountIdHasBeenSet = false;
96
97 Aws::String m_targetAccountId;
98 bool m_targetAccountIdHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace WorkSpaces
103} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue