AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
AccessDetails.h
1
6#pragma once
7#include <aws/account-access-runtime/AccountAccessRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AccountAccessRuntime {
20namespace Model {
21
29 public:
30 AWS_ACCOUNTACCESSRUNTIME_API AccessDetails() = default;
31 AWS_ACCOUNTACCESSRUNTIME_API AccessDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ACCOUNTACCESSRUNTIME_API AccessDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ACCOUNTACCESSRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
48 AccessDetails& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetAccountName() const { return m_accountName; }
60 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
61 template <typename AccountNameT = Aws::String>
62 void SetAccountName(AccountNameT&& value) {
63 m_accountNameHasBeenSet = true;
64 m_accountName = std::forward<AccountNameT>(value);
65 }
66 template <typename AccountNameT = Aws::String>
67 AccessDetails& WithAccountName(AccountNameT&& value) {
68 SetAccountName(std::forward<AccountNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
78 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
79 template <typename RoleArnT = Aws::String>
80 void SetRoleArn(RoleArnT&& value) {
81 m_roleArnHasBeenSet = true;
82 m_roleArn = std::forward<RoleArnT>(value);
83 }
84 template <typename RoleArnT = Aws::String>
85 AccessDetails& WithRoleArn(RoleArnT&& value) {
86 SetRoleArn(std::forward<RoleArnT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_accountId;
92
93 Aws::String m_accountName;
94
95 Aws::String m_roleArn;
96 bool m_accountIdHasBeenSet = false;
97 bool m_accountNameHasBeenSet = false;
98 bool m_roleArnHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace AccountAccessRuntime
103} // namespace Aws
AccessDetails & WithRoleArn(RoleArnT &&value)
AWS_ACCOUNTACCESSRUNTIME_API AccessDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCOUNTACCESSRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AccessDetails & WithAccountId(AccountIdT &&value)
AWS_ACCOUNTACCESSRUNTIME_API AccessDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessDetails & WithAccountName(AccountNameT &&value)
AWS_ACCOUNTACCESSRUNTIME_API AccessDetails()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue