AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
Entitlement.h
1
6#pragma once
7#include <aws/account-access/AccountAccess_EXPORTS.h>
8#include <aws/account-access/model/PrincipalRoleEntitlement.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
30 public:
31 AWS_ACCOUNTACCESS_API Entitlement() = default;
32 AWS_ACCOUNTACCESS_API Entitlement(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ACCOUNTACCESS_API Entitlement& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const PrincipalRoleEntitlement& GetPrincipalRole() const { return m_principalRole; }
41 inline bool PrincipalRoleHasBeenSet() const { return m_principalRoleHasBeenSet; }
42 template <typename PrincipalRoleT = PrincipalRoleEntitlement>
43 void SetPrincipalRole(PrincipalRoleT&& value) {
44 m_principalRoleHasBeenSet = true;
45 m_principalRole = std::forward<PrincipalRoleT>(value);
46 }
47 template <typename PrincipalRoleT = PrincipalRoleEntitlement>
48 Entitlement& WithPrincipalRole(PrincipalRoleT&& value) {
49 SetPrincipalRole(std::forward<PrincipalRoleT>(value));
50 return *this;
51 }
53 private:
54 PrincipalRoleEntitlement m_principalRole;
55 bool m_principalRoleHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace AccountAccess
60} // namespace Aws
void SetPrincipalRole(PrincipalRoleT &&value)
Definition Entitlement.h:43
AWS_ACCOUNTACCESS_API Entitlement()=default
AWS_ACCOUNTACCESS_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCOUNTACCESS_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCOUNTACCESS_API Aws::Utils::Json::JsonValue Jsonize() const
const PrincipalRoleEntitlement & GetPrincipalRole() const
Definition Entitlement.h:40
Entitlement & WithPrincipalRole(PrincipalRoleT &&value)
Definition Entitlement.h:48
Aws::Utils::Json::JsonValue JsonValue