AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
PrincipalRoleEntitlementSummary.h
1
6#pragma once
7#include <aws/account-access/AccountAccess_EXPORTS.h>
8#include <aws/account-access/model/Principal.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AccountAccess {
21namespace Model {
22
30 public:
31 AWS_ACCOUNTACCESS_API PrincipalRoleEntitlementSummary() = default;
34 AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Principal& GetPrincipal() const { return m_principal; }
42 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
43 template <typename PrincipalT = Principal>
44 void SetPrincipal(PrincipalT&& value) {
45 m_principalHasBeenSet = true;
46 m_principal = std::forward<PrincipalT>(value);
47 }
48 template <typename PrincipalT = Principal>
50 SetPrincipal(std::forward<PrincipalT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
60 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
61 template <typename RoleArnT = Aws::String>
62 void SetRoleArn(RoleArnT&& value) {
63 m_roleArnHasBeenSet = true;
64 m_roleArn = std::forward<RoleArnT>(value);
65 }
66 template <typename RoleArnT = Aws::String>
68 SetRoleArn(std::forward<RoleArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAccount() const { return m_account; }
78 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
79 template <typename AccountT = Aws::String>
80 void SetAccount(AccountT&& value) {
81 m_accountHasBeenSet = true;
82 m_account = std::forward<AccountT>(value);
83 }
84 template <typename AccountT = Aws::String>
86 SetAccount(std::forward<AccountT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetAccountName() const { return m_accountName; }
97 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
98 template <typename AccountNameT = Aws::String>
99 void SetAccountName(AccountNameT&& value) {
100 m_accountNameHasBeenSet = true;
101 m_accountName = std::forward<AccountNameT>(value);
102 }
103 template <typename AccountNameT = Aws::String>
105 SetAccountName(std::forward<AccountNameT>(value));
106 return *this;
107 }
109 private:
110 Principal m_principal;
111
112 Aws::String m_roleArn;
113
114 Aws::String m_account;
115
116 Aws::String m_accountName;
117 bool m_principalHasBeenSet = false;
118 bool m_roleArnHasBeenSet = false;
119 bool m_accountHasBeenSet = false;
120 bool m_accountNameHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace AccountAccess
125} // namespace Aws
AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const
PrincipalRoleEntitlementSummary & WithAccountName(AccountNameT &&value)
AWS_ACCOUNTACCESS_API PrincipalRoleEntitlementSummary()=default
PrincipalRoleEntitlementSummary & WithAccount(AccountT &&value)
PrincipalRoleEntitlementSummary & WithRoleArn(RoleArnT &&value)
PrincipalRoleEntitlementSummary & WithPrincipal(PrincipalT &&value)
AWS_ACCOUNTACCESS_API PrincipalRoleEntitlementSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCOUNTACCESS_API PrincipalRoleEntitlementSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue