AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
BatchGetPolicyOutputItem.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#include <aws/verifiedpermissions/model/PolicyDefinitionDetail.h>
11#include <aws/verifiedpermissions/model/PolicyType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace VerifiedPermissions {
23namespace Model {
24
32 public:
33 AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyOutputItem() = default;
34 AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyOutputItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyOutputItem& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
44 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
45 template <typename PolicyStoreIdT = Aws::String>
46 void SetPolicyStoreId(PolicyStoreIdT&& value) {
47 m_policyStoreIdHasBeenSet = true;
48 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
49 }
50 template <typename PolicyStoreIdT = Aws::String>
52 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetPolicyId() const { return m_policyId; }
62 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
63 template <typename PolicyIdT = Aws::String>
64 void SetPolicyId(PolicyIdT&& value) {
65 m_policyIdHasBeenSet = true;
66 m_policyId = std::forward<PolicyIdT>(value);
67 }
68 template <typename PolicyIdT = Aws::String>
70 SetPolicyId(std::forward<PolicyIdT>(value));
71 return *this;
72 }
74
76
81 inline PolicyType GetPolicyType() const { return m_policyType; }
82 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
83 inline void SetPolicyType(PolicyType value) {
84 m_policyTypeHasBeenSet = true;
85 m_policyType = value;
86 }
88 SetPolicyType(value);
89 return *this;
90 }
92
94
97 inline const PolicyDefinitionDetail& GetDefinition() const { return m_definition; }
98 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
99 template <typename DefinitionT = PolicyDefinitionDetail>
100 void SetDefinition(DefinitionT&& value) {
101 m_definitionHasBeenSet = true;
102 m_definition = std::forward<DefinitionT>(value);
103 }
104 template <typename DefinitionT = PolicyDefinitionDetail>
106 SetDefinition(std::forward<DefinitionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
116 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
117 template <typename CreatedDateT = Aws::Utils::DateTime>
118 void SetCreatedDate(CreatedDateT&& value) {
119 m_createdDateHasBeenSet = true;
120 m_createdDate = std::forward<CreatedDateT>(value);
121 }
122 template <typename CreatedDateT = Aws::Utils::DateTime>
124 SetCreatedDate(std::forward<CreatedDateT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
134 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
135 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
136 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
137 m_lastUpdatedDateHasBeenSet = true;
138 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
139 }
140 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
142 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_policyStoreId;
148
149 Aws::String m_policyId;
150
151 PolicyType m_policyType{PolicyType::NOT_SET};
152
153 PolicyDefinitionDetail m_definition;
154
155 Aws::Utils::DateTime m_createdDate{};
156
157 Aws::Utils::DateTime m_lastUpdatedDate{};
158 bool m_policyStoreIdHasBeenSet = false;
159 bool m_policyIdHasBeenSet = false;
160 bool m_policyTypeHasBeenSet = false;
161 bool m_definitionHasBeenSet = false;
162 bool m_createdDateHasBeenSet = false;
163 bool m_lastUpdatedDateHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace VerifiedPermissions
168} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
BatchGetPolicyOutputItem & WithPolicyStoreId(PolicyStoreIdT &&value)
AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyOutputItem()=default
BatchGetPolicyOutputItem & WithPolicyId(PolicyIdT &&value)
BatchGetPolicyOutputItem & WithDefinition(DefinitionT &&value)
BatchGetPolicyOutputItem & WithPolicyType(PolicyType value)
BatchGetPolicyOutputItem & WithCreatedDate(CreatedDateT &&value)
BatchGetPolicyOutputItem & WithLastUpdatedDate(LastUpdatedDateT &&value)
AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyOutputItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyOutputItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue