AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
PolicyGrantMember.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/PolicyGrantDetail.h>
11#include <aws/datazone/model/PolicyGrantPrincipal.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataZone
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DATAZONE_API PolicyGrantMember() = default;
38 AWS_DATAZONE_API PolicyGrantMember(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
48 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
49 template<typename CreatedAtT = Aws::Utils::DateTime>
50 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
51 template<typename CreatedAtT = Aws::Utils::DateTime>
52 PolicyGrantMember& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
54
56
59 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
60 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
61 template<typename CreatedByT = Aws::String>
62 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
63 template<typename CreatedByT = Aws::String>
64 PolicyGrantMember& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
66
68
71 inline const PolicyGrantDetail& GetDetail() const { return m_detail; }
72 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
73 template<typename DetailT = PolicyGrantDetail>
74 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
75 template<typename DetailT = PolicyGrantDetail>
76 PolicyGrantMember& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
78
80
83 inline const Aws::String& GetGrantId() const { return m_grantId; }
84 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
85 template<typename GrantIdT = Aws::String>
86 void SetGrantId(GrantIdT&& value) { m_grantIdHasBeenSet = true; m_grantId = std::forward<GrantIdT>(value); }
87 template<typename GrantIdT = Aws::String>
88 PolicyGrantMember& WithGrantId(GrantIdT&& value) { SetGrantId(std::forward<GrantIdT>(value)); return *this;}
90
92
95 inline const PolicyGrantPrincipal& GetPrincipal() const { return m_principal; }
96 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
97 template<typename PrincipalT = PolicyGrantPrincipal>
98 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
99 template<typename PrincipalT = PolicyGrantPrincipal>
100 PolicyGrantMember& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
102 private:
103
104 Aws::Utils::DateTime m_createdAt{};
105 bool m_createdAtHasBeenSet = false;
106
107 Aws::String m_createdBy;
108 bool m_createdByHasBeenSet = false;
109
110 PolicyGrantDetail m_detail;
111 bool m_detailHasBeenSet = false;
112
113 Aws::String m_grantId;
114 bool m_grantIdHasBeenSet = false;
115
116 PolicyGrantPrincipal m_principal;
117 bool m_principalHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace DataZone
122} // namespace Aws
const PolicyGrantDetail & GetDetail() const
PolicyGrantMember & WithPrincipal(PrincipalT &&value)
AWS_DATAZONE_API PolicyGrantMember & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API PolicyGrantMember(Aws::Utils::Json::JsonView jsonValue)
PolicyGrantMember & WithCreatedAt(CreatedAtT &&value)
const PolicyGrantPrincipal & GetPrincipal() const
PolicyGrantMember & WithGrantId(GrantIdT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyGrantMember & WithCreatedBy(CreatedByT &&value)
AWS_DATAZONE_API PolicyGrantMember()=default
PolicyGrantMember & WithDetail(DetailT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetGrantId() const
const Aws::String & GetCreatedBy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue