AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
PolicyTemplateItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace VerifiedPermissions {
21namespace Model {
22
32 public:
33 AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem() = default;
34 AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
43 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
44 template <typename PolicyStoreIdT = Aws::String>
45 void SetPolicyStoreId(PolicyStoreIdT&& value) {
46 m_policyStoreIdHasBeenSet = true;
47 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
48 }
49 template <typename PolicyStoreIdT = Aws::String>
50 PolicyTemplateItem& WithPolicyStoreId(PolicyStoreIdT&& value) {
51 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPolicyTemplateId() const { return m_policyTemplateId; }
61 inline bool PolicyTemplateIdHasBeenSet() const { return m_policyTemplateIdHasBeenSet; }
62 template <typename PolicyTemplateIdT = Aws::String>
63 void SetPolicyTemplateId(PolicyTemplateIdT&& value) {
64 m_policyTemplateIdHasBeenSet = true;
65 m_policyTemplateId = std::forward<PolicyTemplateIdT>(value);
66 }
67 template <typename PolicyTemplateIdT = Aws::String>
68 PolicyTemplateItem& WithPolicyTemplateId(PolicyTemplateIdT&& value) {
69 SetPolicyTemplateId(std::forward<PolicyTemplateIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 PolicyTemplateItem& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
97 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
98 template <typename CreatedDateT = Aws::Utils::DateTime>
99 void SetCreatedDate(CreatedDateT&& value) {
100 m_createdDateHasBeenSet = true;
101 m_createdDate = std::forward<CreatedDateT>(value);
102 }
103 template <typename CreatedDateT = Aws::Utils::DateTime>
104 PolicyTemplateItem& WithCreatedDate(CreatedDateT&& value) {
105 SetCreatedDate(std::forward<CreatedDateT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
115 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
116 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
117 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
118 m_lastUpdatedDateHasBeenSet = true;
119 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
120 }
121 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
122 PolicyTemplateItem& WithLastUpdatedDate(LastUpdatedDateT&& value) {
123 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_policyStoreId;
129
130 Aws::String m_policyTemplateId;
131
132 Aws::String m_description;
133
134 Aws::Utils::DateTime m_createdDate{};
135
136 Aws::Utils::DateTime m_lastUpdatedDate{};
137 bool m_policyStoreIdHasBeenSet = false;
138 bool m_policyTemplateIdHasBeenSet = false;
139 bool m_descriptionHasBeenSet = false;
140 bool m_createdDateHasBeenSet = false;
141 bool m_lastUpdatedDateHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace VerifiedPermissions
146} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyTemplateItem & WithPolicyTemplateId(PolicyTemplateIdT &&value)
AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem(Aws::Utils::Json::JsonView jsonValue)
PolicyTemplateItem & WithPolicyStoreId(PolicyStoreIdT &&value)
PolicyTemplateItem & WithCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem()=default
AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyTemplateItem & WithDescription(DescriptionT &&value)
PolicyTemplateItem & WithLastUpdatedDate(LastUpdatedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue