AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
EntitlementDetails.h
1
6#pragma once
7#include <aws/account-access/AccountAccess_EXPORTS.h>
8#include <aws/account-access/model/PrincipalRoleEntitlementDetails.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AccountAccess {
20namespace Model {
21
29 public:
30 AWS_ACCOUNTACCESS_API EntitlementDetails() = default;
31 AWS_ACCOUNTACCESS_API EntitlementDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ACCOUNTACCESS_API EntitlementDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const PrincipalRoleEntitlementDetails& GetPrincipalRole() const { return m_principalRole; }
41 inline bool PrincipalRoleHasBeenSet() const { return m_principalRoleHasBeenSet; }
42 template <typename PrincipalRoleT = PrincipalRoleEntitlementDetails>
43 void SetPrincipalRole(PrincipalRoleT&& value) {
44 m_principalRoleHasBeenSet = true;
45 m_principalRole = std::forward<PrincipalRoleT>(value);
46 }
47 template <typename PrincipalRoleT = PrincipalRoleEntitlementDetails>
48 EntitlementDetails& WithPrincipalRole(PrincipalRoleT&& value) {
49 SetPrincipalRole(std::forward<PrincipalRoleT>(value));
50 return *this;
51 }
53 private:
54 PrincipalRoleEntitlementDetails m_principalRole;
55 bool m_principalRoleHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace AccountAccess
60} // namespace Aws
AWS_ACCOUNTACCESS_API EntitlementDetails(Aws::Utils::Json::JsonView jsonValue)
const PrincipalRoleEntitlementDetails & GetPrincipalRole() const
EntitlementDetails & WithPrincipalRole(PrincipalRoleT &&value)
AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCOUNTACCESS_API EntitlementDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCOUNTACCESS_API EntitlementDetails()=default
Aws::Utils::Json::JsonValue JsonValue