AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
IdentitySourceItem.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/ConfigurationItem.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VerifiedPermissions {
22namespace Model {
23
33 public:
34 AWS_VERIFIEDPERMISSIONS_API IdentitySourceItem() = default;
35 AWS_VERIFIEDPERMISSIONS_API IdentitySourceItem(Aws::Utils::Json::JsonView jsonValue);
36 AWS_VERIFIEDPERMISSIONS_API IdentitySourceItem& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
44 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
45 template <typename CreatedDateT = Aws::Utils::DateTime>
46 void SetCreatedDate(CreatedDateT&& value) {
47 m_createdDateHasBeenSet = true;
48 m_createdDate = std::forward<CreatedDateT>(value);
49 }
50 template <typename CreatedDateT = Aws::Utils::DateTime>
51 IdentitySourceItem& WithCreatedDate(CreatedDateT&& value) {
52 SetCreatedDate(std::forward<CreatedDateT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetIdentitySourceId() const { return m_identitySourceId; }
62 inline bool IdentitySourceIdHasBeenSet() const { return m_identitySourceIdHasBeenSet; }
63 template <typename IdentitySourceIdT = Aws::String>
64 void SetIdentitySourceId(IdentitySourceIdT&& value) {
65 m_identitySourceIdHasBeenSet = true;
66 m_identitySourceId = std::forward<IdentitySourceIdT>(value);
67 }
68 template <typename IdentitySourceIdT = Aws::String>
69 IdentitySourceItem& WithIdentitySourceId(IdentitySourceIdT&& value) {
70 SetIdentitySourceId(std::forward<IdentitySourceIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
80 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
81 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
82 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
83 m_lastUpdatedDateHasBeenSet = true;
84 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
85 }
86 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
87 IdentitySourceItem& WithLastUpdatedDate(LastUpdatedDateT&& value) {
88 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
98 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
99 template <typename PolicyStoreIdT = Aws::String>
100 void SetPolicyStoreId(PolicyStoreIdT&& value) {
101 m_policyStoreIdHasBeenSet = true;
102 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
103 }
104 template <typename PolicyStoreIdT = Aws::String>
105 IdentitySourceItem& WithPolicyStoreId(PolicyStoreIdT&& value) {
106 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetPrincipalEntityType() const { return m_principalEntityType; }
117 inline bool PrincipalEntityTypeHasBeenSet() const { return m_principalEntityTypeHasBeenSet; }
118 template <typename PrincipalEntityTypeT = Aws::String>
119 void SetPrincipalEntityType(PrincipalEntityTypeT&& value) {
120 m_principalEntityTypeHasBeenSet = true;
121 m_principalEntityType = std::forward<PrincipalEntityTypeT>(value);
122 }
123 template <typename PrincipalEntityTypeT = Aws::String>
124 IdentitySourceItem& WithPrincipalEntityType(PrincipalEntityTypeT&& value) {
125 SetPrincipalEntityType(std::forward<PrincipalEntityTypeT>(value));
126 return *this;
127 }
129
131
134 inline const ConfigurationItem& GetConfiguration() const { return m_configuration; }
135 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
136 template <typename ConfigurationT = ConfigurationItem>
137 void SetConfiguration(ConfigurationT&& value) {
138 m_configurationHasBeenSet = true;
139 m_configuration = std::forward<ConfigurationT>(value);
140 }
141 template <typename ConfigurationT = ConfigurationItem>
142 IdentitySourceItem& WithConfiguration(ConfigurationT&& value) {
143 SetConfiguration(std::forward<ConfigurationT>(value));
144 return *this;
145 }
147 private:
148 Aws::Utils::DateTime m_createdDate{};
149
150 Aws::String m_identitySourceId;
151
152 Aws::Utils::DateTime m_lastUpdatedDate{};
153
154 Aws::String m_policyStoreId;
155
156 Aws::String m_principalEntityType;
157
158 ConfigurationItem m_configuration;
159 bool m_createdDateHasBeenSet = false;
160 bool m_identitySourceIdHasBeenSet = false;
161 bool m_lastUpdatedDateHasBeenSet = false;
162 bool m_policyStoreIdHasBeenSet = false;
163 bool m_principalEntityTypeHasBeenSet = false;
164 bool m_configurationHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace VerifiedPermissions
169} // namespace Aws
IdentitySourceItem & WithIdentitySourceId(IdentitySourceIdT &&value)
IdentitySourceItem & WithPolicyStoreId(PolicyStoreIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
const Aws::Utils::DateTime & GetCreatedDate() const
AWS_VERIFIEDPERMISSIONS_API IdentitySourceItem(Aws::Utils::Json::JsonView jsonValue)
IdentitySourceItem & WithCreatedDate(CreatedDateT &&value)
IdentitySourceItem & WithPrincipalEntityType(PrincipalEntityTypeT &&value)
IdentitySourceItem & WithConfiguration(ConfigurationT &&value)
AWS_VERIFIEDPERMISSIONS_API IdentitySourceItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VERIFIEDPERMISSIONS_API IdentitySourceItem()=default
IdentitySourceItem & WithLastUpdatedDate(LastUpdatedDateT &&value)
void SetPrincipalEntityType(PrincipalEntityTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue