AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
PolicyStoreItem.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 PolicyStoreItem() = default;
34 AWS_VERIFIEDPERMISSIONS_API PolicyStoreItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_VERIFIEDPERMISSIONS_API PolicyStoreItem& 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 PolicyStoreItem& WithPolicyStoreId(PolicyStoreIdT&& value) {
51 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 PolicyStoreItem& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
79 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
80 template <typename CreatedDateT = Aws::Utils::DateTime>
81 void SetCreatedDate(CreatedDateT&& value) {
82 m_createdDateHasBeenSet = true;
83 m_createdDate = std::forward<CreatedDateT>(value);
84 }
85 template <typename CreatedDateT = Aws::Utils::DateTime>
86 PolicyStoreItem& WithCreatedDate(CreatedDateT&& value) {
87 SetCreatedDate(std::forward<CreatedDateT>(value));
88 return *this;
89 }
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) {
100 m_lastUpdatedDateHasBeenSet = true;
101 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
102 }
103 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
104 PolicyStoreItem& WithLastUpdatedDate(LastUpdatedDateT&& value) {
105 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetDescription() const { return m_description; }
116 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
117 template <typename DescriptionT = Aws::String>
118 void SetDescription(DescriptionT&& value) {
119 m_descriptionHasBeenSet = true;
120 m_description = std::forward<DescriptionT>(value);
121 }
122 template <typename DescriptionT = Aws::String>
123 PolicyStoreItem& WithDescription(DescriptionT&& value) {
124 SetDescription(std::forward<DescriptionT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_policyStoreId;
130
131 Aws::String m_arn;
132
133 Aws::Utils::DateTime m_createdDate{};
134
135 Aws::Utils::DateTime m_lastUpdatedDate{};
136
137 Aws::String m_description;
138 bool m_policyStoreIdHasBeenSet = false;
139 bool m_arnHasBeenSet = false;
140 bool m_createdDateHasBeenSet = false;
141 bool m_lastUpdatedDateHasBeenSet = false;
142 bool m_descriptionHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace VerifiedPermissions
147} // namespace Aws
PolicyStoreItem & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
PolicyStoreItem & WithDescription(DescriptionT &&value)
AWS_VERIFIEDPERMISSIONS_API PolicyStoreItem()=default
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AWS_VERIFIEDPERMISSIONS_API PolicyStoreItem & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyStoreItem & WithPolicyStoreId(PolicyStoreIdT &&value)
PolicyStoreItem & WithCreatedDate(CreatedDateT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUpdatedDate(LastUpdatedDateT &&value)
AWS_VERIFIEDPERMISSIONS_API PolicyStoreItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue