AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
50 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
51 inline PolicyGrantMember& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
52 inline PolicyGrantMember& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
60 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
61 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
62 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
63 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
64 inline PolicyGrantMember& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
65 inline PolicyGrantMember& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
66 inline PolicyGrantMember& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
68
70
73 inline const PolicyGrantDetail& GetDetail() const{ return m_detail; }
74 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
75 inline void SetDetail(const PolicyGrantDetail& value) { m_detailHasBeenSet = true; m_detail = value; }
76 inline void SetDetail(PolicyGrantDetail&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
77 inline PolicyGrantMember& WithDetail(const PolicyGrantDetail& value) { SetDetail(value); return *this;}
78 inline PolicyGrantMember& WithDetail(PolicyGrantDetail&& value) { SetDetail(std::move(value)); return *this;}
80
82
85 inline const PolicyGrantPrincipal& GetPrincipal() const{ return m_principal; }
86 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
87 inline void SetPrincipal(const PolicyGrantPrincipal& value) { m_principalHasBeenSet = true; m_principal = value; }
88 inline void SetPrincipal(PolicyGrantPrincipal&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
89 inline PolicyGrantMember& WithPrincipal(const PolicyGrantPrincipal& value) { SetPrincipal(value); return *this;}
90 inline PolicyGrantMember& WithPrincipal(PolicyGrantPrincipal&& value) { SetPrincipal(std::move(value)); return *this;}
92 private:
93
94 Aws::Utils::DateTime m_createdAt;
95 bool m_createdAtHasBeenSet = false;
96
97 Aws::String m_createdBy;
98 bool m_createdByHasBeenSet = false;
99
100 PolicyGrantDetail m_detail;
101 bool m_detailHasBeenSet = false;
102
103 PolicyGrantPrincipal m_principal;
104 bool m_principalHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace DataZone
109} // namespace Aws
void SetDetail(PolicyGrantDetail &&value)
const PolicyGrantDetail & GetDetail() const
void SetDetail(const PolicyGrantDetail &value)
PolicyGrantMember & WithCreatedBy(Aws::String &&value)
void SetCreatedBy(const Aws::String &value)
PolicyGrantMember & WithCreatedBy(const char *value)
PolicyGrantMember & WithPrincipal(PolicyGrantPrincipal &&value)
AWS_DATAZONE_API PolicyGrantMember & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API PolicyGrantMember(Aws::Utils::Json::JsonView jsonValue)
const PolicyGrantPrincipal & GetPrincipal() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrincipal(const PolicyGrantPrincipal &value)
PolicyGrantMember & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
PolicyGrantMember & WithDetail(const PolicyGrantDetail &value)
PolicyGrantMember & WithPrincipal(const PolicyGrantPrincipal &value)
PolicyGrantMember & WithCreatedBy(const Aws::String &value)
void SetPrincipal(PolicyGrantPrincipal &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
PolicyGrantMember & WithCreatedAt(const Aws::Utils::DateTime &value)
PolicyGrantMember & WithDetail(PolicyGrantDetail &&value)
const Aws::String & GetCreatedBy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue