AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ServiceLastAccessed.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iam/IAM_EXPORTS.h>
12#include <aws/iam/model/TrackedActionLastAccessed.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace IAM {
23namespace Model {
24
34 public:
35 AWS_IAM_API ServiceLastAccessed() = default;
36 AWS_IAM_API ServiceLastAccessed(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetServiceName() const { return m_serviceName; }
47 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
48 template <typename ServiceNameT = Aws::String>
49 void SetServiceName(ServiceNameT&& value) {
50 m_serviceNameHasBeenSet = true;
51 m_serviceName = std::forward<ServiceNameT>(value);
52 }
53 template <typename ServiceNameT = Aws::String>
54 ServiceLastAccessed& WithServiceName(ServiceNameT&& value) {
55 SetServiceName(std::forward<ServiceNameT>(value));
56 return *this;
57 }
59
61
70 inline const Aws::Utils::DateTime& GetLastAuthenticated() const { return m_lastAuthenticated; }
71 inline bool LastAuthenticatedHasBeenSet() const { return m_lastAuthenticatedHasBeenSet; }
72 template <typename LastAuthenticatedT = Aws::Utils::DateTime>
73 void SetLastAuthenticated(LastAuthenticatedT&& value) {
74 m_lastAuthenticatedHasBeenSet = true;
75 m_lastAuthenticated = std::forward<LastAuthenticatedT>(value);
76 }
77 template <typename LastAuthenticatedT = Aws::Utils::DateTime>
78 ServiceLastAccessed& WithLastAuthenticated(LastAuthenticatedT&& value) {
79 SetLastAuthenticated(std::forward<LastAuthenticatedT>(value));
80 return *this;
81 }
83
85
98 inline const Aws::String& GetServiceNamespace() const { return m_serviceNamespace; }
99 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
100 template <typename ServiceNamespaceT = Aws::String>
101 void SetServiceNamespace(ServiceNamespaceT&& value) {
102 m_serviceNamespaceHasBeenSet = true;
103 m_serviceNamespace = std::forward<ServiceNamespaceT>(value);
104 }
105 template <typename ServiceNamespaceT = Aws::String>
106 ServiceLastAccessed& WithServiceNamespace(ServiceNamespaceT&& value) {
107 SetServiceNamespace(std::forward<ServiceNamespaceT>(value));
108 return *this;
109 }
111
113
121 inline const Aws::String& GetLastAuthenticatedEntity() const { return m_lastAuthenticatedEntity; }
122 inline bool LastAuthenticatedEntityHasBeenSet() const { return m_lastAuthenticatedEntityHasBeenSet; }
123 template <typename LastAuthenticatedEntityT = Aws::String>
124 void SetLastAuthenticatedEntity(LastAuthenticatedEntityT&& value) {
125 m_lastAuthenticatedEntityHasBeenSet = true;
126 m_lastAuthenticatedEntity = std::forward<LastAuthenticatedEntityT>(value);
127 }
128 template <typename LastAuthenticatedEntityT = Aws::String>
129 ServiceLastAccessed& WithLastAuthenticatedEntity(LastAuthenticatedEntityT&& value) {
130 SetLastAuthenticatedEntity(std::forward<LastAuthenticatedEntityT>(value));
131 return *this;
132 }
134
136
144 inline const Aws::String& GetLastAuthenticatedRegion() const { return m_lastAuthenticatedRegion; }
145 inline bool LastAuthenticatedRegionHasBeenSet() const { return m_lastAuthenticatedRegionHasBeenSet; }
146 template <typename LastAuthenticatedRegionT = Aws::String>
147 void SetLastAuthenticatedRegion(LastAuthenticatedRegionT&& value) {
148 m_lastAuthenticatedRegionHasBeenSet = true;
149 m_lastAuthenticatedRegion = std::forward<LastAuthenticatedRegionT>(value);
150 }
151 template <typename LastAuthenticatedRegionT = Aws::String>
152 ServiceLastAccessed& WithLastAuthenticatedRegion(LastAuthenticatedRegionT&& value) {
153 SetLastAuthenticatedRegion(std::forward<LastAuthenticatedRegionT>(value));
154 return *this;
155 }
157
159
166 inline int GetTotalAuthenticatedEntities() const { return m_totalAuthenticatedEntities; }
167 inline bool TotalAuthenticatedEntitiesHasBeenSet() const { return m_totalAuthenticatedEntitiesHasBeenSet; }
168 inline void SetTotalAuthenticatedEntities(int value) {
169 m_totalAuthenticatedEntitiesHasBeenSet = true;
170 m_totalAuthenticatedEntities = value;
171 }
174 return *this;
175 }
177
179
189 inline const Aws::Vector<TrackedActionLastAccessed>& GetTrackedActionsLastAccessed() const { return m_trackedActionsLastAccessed; }
190 inline bool TrackedActionsLastAccessedHasBeenSet() const { return m_trackedActionsLastAccessedHasBeenSet; }
191 template <typename TrackedActionsLastAccessedT = Aws::Vector<TrackedActionLastAccessed>>
192 void SetTrackedActionsLastAccessed(TrackedActionsLastAccessedT&& value) {
193 m_trackedActionsLastAccessedHasBeenSet = true;
194 m_trackedActionsLastAccessed = std::forward<TrackedActionsLastAccessedT>(value);
195 }
196 template <typename TrackedActionsLastAccessedT = Aws::Vector<TrackedActionLastAccessed>>
197 ServiceLastAccessed& WithTrackedActionsLastAccessed(TrackedActionsLastAccessedT&& value) {
198 SetTrackedActionsLastAccessed(std::forward<TrackedActionsLastAccessedT>(value));
199 return *this;
200 }
201 template <typename TrackedActionsLastAccessedT = TrackedActionLastAccessed>
202 ServiceLastAccessed& AddTrackedActionsLastAccessed(TrackedActionsLastAccessedT&& value) {
203 m_trackedActionsLastAccessedHasBeenSet = true;
204 m_trackedActionsLastAccessed.emplace_back(std::forward<TrackedActionsLastAccessedT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_serviceName;
210
211 Aws::Utils::DateTime m_lastAuthenticated{};
212
213 Aws::String m_serviceNamespace;
214
215 Aws::String m_lastAuthenticatedEntity;
216
217 Aws::String m_lastAuthenticatedRegion;
218
219 int m_totalAuthenticatedEntities{0};
220
221 Aws::Vector<TrackedActionLastAccessed> m_trackedActionsLastAccessed;
222 bool m_serviceNameHasBeenSet = false;
223 bool m_lastAuthenticatedHasBeenSet = false;
224 bool m_serviceNamespaceHasBeenSet = false;
225 bool m_lastAuthenticatedEntityHasBeenSet = false;
226 bool m_lastAuthenticatedRegionHasBeenSet = false;
227 bool m_totalAuthenticatedEntitiesHasBeenSet = false;
228 bool m_trackedActionsLastAccessedHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace IAM
233} // namespace Aws
const Aws::String & GetLastAuthenticatedRegion() const
void SetLastAuthenticated(LastAuthenticatedT &&value)
ServiceLastAccessed & AddTrackedActionsLastAccessed(TrackedActionsLastAccessedT &&value)
const Aws::String & GetServiceNamespace() const
const Aws::Utils::DateTime & GetLastAuthenticated() const
ServiceLastAccessed & WithServiceNamespace(ServiceNamespaceT &&value)
void SetTrackedActionsLastAccessed(TrackedActionsLastAccessedT &&value)
void SetLastAuthenticatedEntity(LastAuthenticatedEntityT &&value)
void SetLastAuthenticatedRegion(LastAuthenticatedRegionT &&value)
ServiceLastAccessed & WithLastAuthenticatedEntity(LastAuthenticatedEntityT &&value)
ServiceLastAccessed & WithTotalAuthenticatedEntities(int value)
const Aws::Vector< TrackedActionLastAccessed > & GetTrackedActionsLastAccessed() const
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_IAM_API ServiceLastAccessed(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceLastAccessed & WithLastAuthenticatedRegion(LastAuthenticatedRegionT &&value)
void SetServiceNamespace(ServiceNamespaceT &&value)
AWS_IAM_API ServiceLastAccessed()=default
ServiceLastAccessed & WithServiceName(ServiceNameT &&value)
const Aws::String & GetServiceName() const
const Aws::String & GetLastAuthenticatedEntity() const
ServiceLastAccessed & WithLastAuthenticated(LastAuthenticatedT &&value)
AWS_IAM_API ServiceLastAccessed & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetServiceName(ServiceNameT &&value)
ServiceLastAccessed & WithTrackedActionsLastAccessed(TrackedActionsLastAccessedT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream