AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountLinkId(const Aws::String& value) { m_accountLinkIdHasBeenSet = true; m_accountLinkId = value; }
48 inline void SetAccountLinkId(Aws::String&& value) { m_accountLinkIdHasBeenSet = true; m_accountLinkId = std::move(value); }
49 inline void SetAccountLinkId(const char* value) { m_accountLinkIdHasBeenSet = true; m_accountLinkId.assign(value); }
50 inline AccountLink& WithAccountLinkId(const Aws::String& value) { SetAccountLinkId(value); return *this;}
51 inline AccountLink& WithAccountLinkId(Aws::String&& value) { SetAccountLinkId(std::move(value)); return *this;}
52 inline AccountLink& WithAccountLinkId(const char* value) { SetAccountLinkId(value); return *this;}
54
56
59 inline const AccountLinkStatusEnum& GetAccountLinkStatus() const{ return m_accountLinkStatus; }
60 inline bool AccountLinkStatusHasBeenSet() const { return m_accountLinkStatusHasBeenSet; }
61 inline void SetAccountLinkStatus(const AccountLinkStatusEnum& value) { m_accountLinkStatusHasBeenSet = true; m_accountLinkStatus = value; }
62 inline void SetAccountLinkStatus(AccountLinkStatusEnum&& value) { m_accountLinkStatusHasBeenSet = true; m_accountLinkStatus = std::move(value); }
63 inline AccountLink& WithAccountLinkStatus(const AccountLinkStatusEnum& value) { SetAccountLinkStatus(value); return *this;}
64 inline AccountLink& WithAccountLinkStatus(AccountLinkStatusEnum&& value) { SetAccountLinkStatus(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetSourceAccountId() const{ return m_sourceAccountId; }
72 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
73 inline void SetSourceAccountId(const Aws::String& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = value; }
74 inline void SetSourceAccountId(Aws::String&& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = std::move(value); }
75 inline void SetSourceAccountId(const char* value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId.assign(value); }
76 inline AccountLink& WithSourceAccountId(const Aws::String& value) { SetSourceAccountId(value); return *this;}
77 inline AccountLink& WithSourceAccountId(Aws::String&& value) { SetSourceAccountId(std::move(value)); return *this;}
78 inline AccountLink& WithSourceAccountId(const char* value) { SetSourceAccountId(value); return *this;}
80
82
85 inline const Aws::String& GetTargetAccountId() const{ return m_targetAccountId; }
86 inline bool TargetAccountIdHasBeenSet() const { return m_targetAccountIdHasBeenSet; }
87 inline void SetTargetAccountId(const Aws::String& value) { m_targetAccountIdHasBeenSet = true; m_targetAccountId = value; }
88 inline void SetTargetAccountId(Aws::String&& value) { m_targetAccountIdHasBeenSet = true; m_targetAccountId = std::move(value); }
89 inline void SetTargetAccountId(const char* value) { m_targetAccountIdHasBeenSet = true; m_targetAccountId.assign(value); }
90 inline AccountLink& WithTargetAccountId(const Aws::String& value) { SetTargetAccountId(value); return *this;}
91 inline AccountLink& WithTargetAccountId(Aws::String&& value) { SetTargetAccountId(std::move(value)); return *this;}
92 inline AccountLink& WithTargetAccountId(const char* value) { SetTargetAccountId(value); return *this;}
94 private:
95
96 Aws::String m_accountLinkId;
97 bool m_accountLinkIdHasBeenSet = false;
98
99 AccountLinkStatusEnum m_accountLinkStatus;
100 bool m_accountLinkStatusHasBeenSet = false;
101
102 Aws::String m_sourceAccountId;
103 bool m_sourceAccountIdHasBeenSet = false;
104
105 Aws::String m_targetAccountId;
106 bool m_targetAccountIdHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace WorkSpaces
111} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue