AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
PrincipalRoleEntitlement.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 PrincipalRoleEntitlement() = default;
32 AWS_ACCOUNTACCESS_API PrincipalRoleEntitlement(Aws::Utils::Json::JsonView jsonValue);
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 private:
73 Principal m_principal;
74
75 Aws::String m_roleArn;
76 bool m_principalHasBeenSet = false;
77 bool m_roleArnHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace AccountAccess
82} // namespace Aws
AWS_ACCOUNTACCESS_API PrincipalRoleEntitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCOUNTACCESS_API PrincipalRoleEntitlement(Aws::Utils::Json::JsonView jsonValue)
PrincipalRoleEntitlement & WithPrincipal(PrincipalT &&value)
AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const
PrincipalRoleEntitlement & WithRoleArn(RoleArnT &&value)
AWS_ACCOUNTACCESS_API PrincipalRoleEntitlement()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue