AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceLastAccessed.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iam/model/TrackedActionLastAccessed.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace IAM
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_IAM_API ServiceLastAccessed() = default;
41 AWS_IAM_API ServiceLastAccessed(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetServiceName() const { return m_serviceName; }
53 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
54 template<typename ServiceNameT = Aws::String>
55 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
56 template<typename ServiceNameT = Aws::String>
57 ServiceLastAccessed& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
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) { m_lastAuthenticatedHasBeenSet = true; m_lastAuthenticated = std::forward<LastAuthenticatedT>(value); }
74 template<typename LastAuthenticatedT = Aws::Utils::DateTime>
75 ServiceLastAccessed& WithLastAuthenticated(LastAuthenticatedT&& value) { SetLastAuthenticated(std::forward<LastAuthenticatedT>(value)); return *this;}
77
79
92 inline const Aws::String& GetServiceNamespace() const { return m_serviceNamespace; }
93 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
94 template<typename ServiceNamespaceT = Aws::String>
95 void SetServiceNamespace(ServiceNamespaceT&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::forward<ServiceNamespaceT>(value); }
96 template<typename ServiceNamespaceT = Aws::String>
97 ServiceLastAccessed& WithServiceNamespace(ServiceNamespaceT&& value) { SetServiceNamespace(std::forward<ServiceNamespaceT>(value)); return *this;}
99
101
109 inline const Aws::String& GetLastAuthenticatedEntity() const { return m_lastAuthenticatedEntity; }
110 inline bool LastAuthenticatedEntityHasBeenSet() const { return m_lastAuthenticatedEntityHasBeenSet; }
111 template<typename LastAuthenticatedEntityT = Aws::String>
112 void SetLastAuthenticatedEntity(LastAuthenticatedEntityT&& value) { m_lastAuthenticatedEntityHasBeenSet = true; m_lastAuthenticatedEntity = std::forward<LastAuthenticatedEntityT>(value); }
113 template<typename LastAuthenticatedEntityT = Aws::String>
114 ServiceLastAccessed& WithLastAuthenticatedEntity(LastAuthenticatedEntityT&& value) { SetLastAuthenticatedEntity(std::forward<LastAuthenticatedEntityT>(value)); return *this;}
116
118
126 inline const Aws::String& GetLastAuthenticatedRegion() const { return m_lastAuthenticatedRegion; }
127 inline bool LastAuthenticatedRegionHasBeenSet() const { return m_lastAuthenticatedRegionHasBeenSet; }
128 template<typename LastAuthenticatedRegionT = Aws::String>
129 void SetLastAuthenticatedRegion(LastAuthenticatedRegionT&& value) { m_lastAuthenticatedRegionHasBeenSet = true; m_lastAuthenticatedRegion = std::forward<LastAuthenticatedRegionT>(value); }
130 template<typename LastAuthenticatedRegionT = Aws::String>
131 ServiceLastAccessed& WithLastAuthenticatedRegion(LastAuthenticatedRegionT&& value) { SetLastAuthenticatedRegion(std::forward<LastAuthenticatedRegionT>(value)); return *this;}
133
135
142 inline int GetTotalAuthenticatedEntities() const { return m_totalAuthenticatedEntities; }
143 inline bool TotalAuthenticatedEntitiesHasBeenSet() const { return m_totalAuthenticatedEntitiesHasBeenSet; }
144 inline void SetTotalAuthenticatedEntities(int value) { m_totalAuthenticatedEntitiesHasBeenSet = true; m_totalAuthenticatedEntities = value; }
147
149
159 inline const Aws::Vector<TrackedActionLastAccessed>& GetTrackedActionsLastAccessed() const { return m_trackedActionsLastAccessed; }
160 inline bool TrackedActionsLastAccessedHasBeenSet() const { return m_trackedActionsLastAccessedHasBeenSet; }
161 template<typename TrackedActionsLastAccessedT = Aws::Vector<TrackedActionLastAccessed>>
162 void SetTrackedActionsLastAccessed(TrackedActionsLastAccessedT&& value) { m_trackedActionsLastAccessedHasBeenSet = true; m_trackedActionsLastAccessed = std::forward<TrackedActionsLastAccessedT>(value); }
163 template<typename TrackedActionsLastAccessedT = Aws::Vector<TrackedActionLastAccessed>>
164 ServiceLastAccessed& WithTrackedActionsLastAccessed(TrackedActionsLastAccessedT&& value) { SetTrackedActionsLastAccessed(std::forward<TrackedActionsLastAccessedT>(value)); return *this;}
165 template<typename TrackedActionsLastAccessedT = TrackedActionLastAccessed>
166 ServiceLastAccessed& AddTrackedActionsLastAccessed(TrackedActionsLastAccessedT&& value) { m_trackedActionsLastAccessedHasBeenSet = true; m_trackedActionsLastAccessed.emplace_back(std::forward<TrackedActionsLastAccessedT>(value)); return *this; }
168 private:
169
170 Aws::String m_serviceName;
171 bool m_serviceNameHasBeenSet = false;
172
173 Aws::Utils::DateTime m_lastAuthenticated{};
174 bool m_lastAuthenticatedHasBeenSet = false;
175
176 Aws::String m_serviceNamespace;
177 bool m_serviceNamespaceHasBeenSet = false;
178
179 Aws::String m_lastAuthenticatedEntity;
180 bool m_lastAuthenticatedEntityHasBeenSet = false;
181
182 Aws::String m_lastAuthenticatedRegion;
183 bool m_lastAuthenticatedRegionHasBeenSet = false;
184
185 int m_totalAuthenticatedEntities{0};
186 bool m_totalAuthenticatedEntitiesHasBeenSet = false;
187
188 Aws::Vector<TrackedActionLastAccessed> m_trackedActionsLastAccessed;
189 bool m_trackedActionsLastAccessedHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace IAM
194} // 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