AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PolicyTemplateItem.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 VerifiedPermissions
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem() = default;
39 AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_VERIFIEDPERMISSIONS_API PolicyTemplateItem& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
49 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
50 template<typename PolicyStoreIdT = Aws::String>
51 void SetPolicyStoreId(PolicyStoreIdT&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::forward<PolicyStoreIdT>(value); }
52 template<typename PolicyStoreIdT = Aws::String>
53 PolicyTemplateItem& WithPolicyStoreId(PolicyStoreIdT&& value) { SetPolicyStoreId(std::forward<PolicyStoreIdT>(value)); return *this;}
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) { m_policyTemplateIdHasBeenSet = true; m_policyTemplateId = std::forward<PolicyTemplateIdT>(value); }
64 template<typename PolicyTemplateIdT = Aws::String>
65 PolicyTemplateItem& WithPolicyTemplateId(PolicyTemplateIdT&& value) { SetPolicyTemplateId(std::forward<PolicyTemplateIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 PolicyTemplateItem& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
85 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
86 template<typename CreatedDateT = Aws::Utils::DateTime>
87 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
88 template<typename CreatedDateT = Aws::Utils::DateTime>
89 PolicyTemplateItem& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
97 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
98 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
99 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
100 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
101 PolicyTemplateItem& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
103 private:
104
105 Aws::String m_policyStoreId;
106 bool m_policyStoreIdHasBeenSet = false;
107
108 Aws::String m_policyTemplateId;
109 bool m_policyTemplateIdHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::Utils::DateTime m_createdDate{};
115 bool m_createdDateHasBeenSet = false;
116
117 Aws::Utils::DateTime m_lastUpdatedDate{};
118 bool m_lastUpdatedDateHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace VerifiedPermissions
123} // 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