AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
37 {
38 public:
39 AWS_IAM_API ServiceLastAccessed();
40 AWS_IAM_API ServiceLastAccessed(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
52 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
53 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
54 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
55 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
56 inline ServiceLastAccessed& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
57 inline ServiceLastAccessed& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
58 inline ServiceLastAccessed& WithServiceName(const char* value) { SetServiceName(value); return *this;}
60
62
71 inline const Aws::Utils::DateTime& GetLastAuthenticated() const{ return m_lastAuthenticated; }
72 inline bool LastAuthenticatedHasBeenSet() const { return m_lastAuthenticatedHasBeenSet; }
73 inline void SetLastAuthenticated(const Aws::Utils::DateTime& value) { m_lastAuthenticatedHasBeenSet = true; m_lastAuthenticated = value; }
74 inline void SetLastAuthenticated(Aws::Utils::DateTime&& value) { m_lastAuthenticatedHasBeenSet = true; m_lastAuthenticated = std::move(value); }
76 inline ServiceLastAccessed& WithLastAuthenticated(Aws::Utils::DateTime&& value) { SetLastAuthenticated(std::move(value)); return *this;}
78
80
93 inline const Aws::String& GetServiceNamespace() const{ return m_serviceNamespace; }
94 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
95 inline void SetServiceNamespace(const Aws::String& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
96 inline void SetServiceNamespace(Aws::String&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
97 inline void SetServiceNamespace(const char* value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace.assign(value); }
98 inline ServiceLastAccessed& WithServiceNamespace(const Aws::String& value) { SetServiceNamespace(value); return *this;}
99 inline ServiceLastAccessed& WithServiceNamespace(Aws::String&& value) { SetServiceNamespace(std::move(value)); return *this;}
100 inline ServiceLastAccessed& WithServiceNamespace(const char* value) { SetServiceNamespace(value); return *this;}
102
104
112 inline const Aws::String& GetLastAuthenticatedEntity() const{ return m_lastAuthenticatedEntity; }
113 inline bool LastAuthenticatedEntityHasBeenSet() const { return m_lastAuthenticatedEntityHasBeenSet; }
114 inline void SetLastAuthenticatedEntity(const Aws::String& value) { m_lastAuthenticatedEntityHasBeenSet = true; m_lastAuthenticatedEntity = value; }
115 inline void SetLastAuthenticatedEntity(Aws::String&& value) { m_lastAuthenticatedEntityHasBeenSet = true; m_lastAuthenticatedEntity = std::move(value); }
116 inline void SetLastAuthenticatedEntity(const char* value) { m_lastAuthenticatedEntityHasBeenSet = true; m_lastAuthenticatedEntity.assign(value); }
119 inline ServiceLastAccessed& WithLastAuthenticatedEntity(const char* value) { SetLastAuthenticatedEntity(value); return *this;}
121
123
131 inline const Aws::String& GetLastAuthenticatedRegion() const{ return m_lastAuthenticatedRegion; }
132 inline bool LastAuthenticatedRegionHasBeenSet() const { return m_lastAuthenticatedRegionHasBeenSet; }
133 inline void SetLastAuthenticatedRegion(const Aws::String& value) { m_lastAuthenticatedRegionHasBeenSet = true; m_lastAuthenticatedRegion = value; }
134 inline void SetLastAuthenticatedRegion(Aws::String&& value) { m_lastAuthenticatedRegionHasBeenSet = true; m_lastAuthenticatedRegion = std::move(value); }
135 inline void SetLastAuthenticatedRegion(const char* value) { m_lastAuthenticatedRegionHasBeenSet = true; m_lastAuthenticatedRegion.assign(value); }
138 inline ServiceLastAccessed& WithLastAuthenticatedRegion(const char* value) { SetLastAuthenticatedRegion(value); return *this;}
140
142
149 inline int GetTotalAuthenticatedEntities() const{ return m_totalAuthenticatedEntities; }
150 inline bool TotalAuthenticatedEntitiesHasBeenSet() const { return m_totalAuthenticatedEntitiesHasBeenSet; }
151 inline void SetTotalAuthenticatedEntities(int value) { m_totalAuthenticatedEntitiesHasBeenSet = true; m_totalAuthenticatedEntities = value; }
154
156
165 inline const Aws::Vector<TrackedActionLastAccessed>& GetTrackedActionsLastAccessed() const{ return m_trackedActionsLastAccessed; }
166 inline bool TrackedActionsLastAccessedHasBeenSet() const { return m_trackedActionsLastAccessedHasBeenSet; }
167 inline void SetTrackedActionsLastAccessed(const Aws::Vector<TrackedActionLastAccessed>& value) { m_trackedActionsLastAccessedHasBeenSet = true; m_trackedActionsLastAccessed = value; }
168 inline void SetTrackedActionsLastAccessed(Aws::Vector<TrackedActionLastAccessed>&& value) { m_trackedActionsLastAccessedHasBeenSet = true; m_trackedActionsLastAccessed = std::move(value); }
171 inline ServiceLastAccessed& AddTrackedActionsLastAccessed(const TrackedActionLastAccessed& value) { m_trackedActionsLastAccessedHasBeenSet = true; m_trackedActionsLastAccessed.push_back(value); return *this; }
172 inline ServiceLastAccessed& AddTrackedActionsLastAccessed(TrackedActionLastAccessed&& value) { m_trackedActionsLastAccessedHasBeenSet = true; m_trackedActionsLastAccessed.push_back(std::move(value)); return *this; }
174 private:
175
176 Aws::String m_serviceName;
177 bool m_serviceNameHasBeenSet = false;
178
179 Aws::Utils::DateTime m_lastAuthenticated;
180 bool m_lastAuthenticatedHasBeenSet = false;
181
182 Aws::String m_serviceNamespace;
183 bool m_serviceNamespaceHasBeenSet = false;
184
185 Aws::String m_lastAuthenticatedEntity;
186 bool m_lastAuthenticatedEntityHasBeenSet = false;
187
188 Aws::String m_lastAuthenticatedRegion;
189 bool m_lastAuthenticatedRegionHasBeenSet = false;
190
191 int m_totalAuthenticatedEntities;
192 bool m_totalAuthenticatedEntitiesHasBeenSet = false;
193
194 Aws::Vector<TrackedActionLastAccessed> m_trackedActionsLastAccessed;
195 bool m_trackedActionsLastAccessedHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace IAM
200} // namespace Aws
void SetLastAuthenticated(Aws::Utils::DateTime &&value)
const Aws::String & GetLastAuthenticatedRegion() const
void SetTrackedActionsLastAccessed(const Aws::Vector< TrackedActionLastAccessed > &value)
void SetServiceNamespace(Aws::String &&value)
ServiceLastAccessed & WithServiceName(Aws::String &&value)
void SetLastAuthenticatedRegion(const char *value)
ServiceLastAccessed & WithLastAuthenticatedRegion(const char *value)
void SetServiceNamespace(const Aws::String &value)
ServiceLastAccessed & WithTrackedActionsLastAccessed(Aws::Vector< TrackedActionLastAccessed > &&value)
void SetLastAuthenticated(const Aws::Utils::DateTime &value)
ServiceLastAccessed & WithServiceNamespace(const char *value)
const Aws::String & GetServiceNamespace() const
void SetLastAuthenticatedRegion(const Aws::String &value)
const Aws::Utils::DateTime & GetLastAuthenticated() const
ServiceLastAccessed & WithLastAuthenticatedRegion(const Aws::String &value)
ServiceLastAccessed & WithLastAuthenticatedRegion(Aws::String &&value)
void SetLastAuthenticatedRegion(Aws::String &&value)
ServiceLastAccessed & WithServiceNamespace(const Aws::String &value)
ServiceLastAccessed & WithLastAuthenticated(Aws::Utils::DateTime &&value)
ServiceLastAccessed & WithLastAuthenticatedEntity(const Aws::String &value)
ServiceLastAccessed & WithLastAuthenticatedEntity(Aws::String &&value)
ServiceLastAccessed & WithServiceName(const Aws::String &value)
void SetLastAuthenticatedEntity(Aws::String &&value)
void SetTrackedActionsLastAccessed(Aws::Vector< TrackedActionLastAccessed > &&value)
ServiceLastAccessed & WithTotalAuthenticatedEntities(int value)
void SetServiceName(const Aws::String &value)
const Aws::Vector< TrackedActionLastAccessed > & GetTrackedActionsLastAccessed() const
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ServiceLastAccessed & WithServiceNamespace(Aws::String &&value)
ServiceLastAccessed & WithTrackedActionsLastAccessed(const Aws::Vector< TrackedActionLastAccessed > &value)
ServiceLastAccessed & WithLastAuthenticatedEntity(const char *value)
void SetLastAuthenticatedEntity(const Aws::String &value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ServiceLastAccessed & AddTrackedActionsLastAccessed(const TrackedActionLastAccessed &value)
AWS_IAM_API ServiceLastAccessed(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceLastAccessed & WithLastAuthenticated(const Aws::Utils::DateTime &value)
void SetServiceName(Aws::String &&value)
const Aws::String & GetServiceName() const
const Aws::String & GetLastAuthenticatedEntity() const
ServiceLastAccessed & WithServiceName(const char *value)
void SetServiceNamespace(const char *value)
ServiceLastAccessed & AddTrackedActionsLastAccessed(TrackedActionLastAccessed &&value)
void SetLastAuthenticatedEntity(const char *value)
AWS_IAM_API ServiceLastAccessed & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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