AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrantItem.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/sso-admin/model/Grant.h>
9#include <aws/sso-admin/model/GrantType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSOAdmin
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSOADMIN_API GrantItem();
37 AWS_SSOADMIN_API GrantItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSOADMIN_API GrantItem& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Grant& GetGrant() const{ return m_grant; }
47 inline bool GrantHasBeenSet() const { return m_grantHasBeenSet; }
48 inline void SetGrant(const Grant& value) { m_grantHasBeenSet = true; m_grant = value; }
49 inline void SetGrant(Grant&& value) { m_grantHasBeenSet = true; m_grant = std::move(value); }
50 inline GrantItem& WithGrant(const Grant& value) { SetGrant(value); return *this;}
51 inline GrantItem& WithGrant(Grant&& value) { SetGrant(std::move(value)); return *this;}
53
55
58 inline const GrantType& GetGrantType() const{ return m_grantType; }
59 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
60 inline void SetGrantType(const GrantType& value) { m_grantTypeHasBeenSet = true; m_grantType = value; }
61 inline void SetGrantType(GrantType&& value) { m_grantTypeHasBeenSet = true; m_grantType = std::move(value); }
62 inline GrantItem& WithGrantType(const GrantType& value) { SetGrantType(value); return *this;}
63 inline GrantItem& WithGrantType(GrantType&& value) { SetGrantType(std::move(value)); return *this;}
65 private:
66
67 Grant m_grant;
68 bool m_grantHasBeenSet = false;
69
70 GrantType m_grantType;
71 bool m_grantTypeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SSOAdmin
76} // namespace Aws
void SetGrantType(GrantType &&value)
Definition GrantItem.h:61
GrantItem & WithGrantType(GrantType &&value)
Definition GrantItem.h:63
void SetGrant(Grant &&value)
Definition GrantItem.h:49
void SetGrantType(const GrantType &value)
Definition GrantItem.h:60
AWS_SSOADMIN_API GrantItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Grant & GetGrant() const
Definition GrantItem.h:46
GrantItem & WithGrant(Grant &&value)
Definition GrantItem.h:51
void SetGrant(const Grant &value)
Definition GrantItem.h:48
GrantItem & WithGrantType(const GrantType &value)
Definition GrantItem.h:62
AWS_SSOADMIN_API GrantItem()
AWS_SSOADMIN_API GrantItem(Aws::Utils::Json::JsonView jsonValue)
const GrantType & GetGrantType() const
Definition GrantItem.h:58
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
GrantItem & WithGrant(const Grant &value)
Definition GrantItem.h:50
Aws::Utils::Json::JsonValue JsonValue