AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
AccessDetail.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/iam/IAM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace IAM {
21namespace Model {
22
35 public:
36 AWS_IAM_API AccessDetail() = default;
37 AWS_IAM_API AccessDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_IAM_API AccessDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline const Aws::String& GetServiceName() const { return m_serviceName; }
48 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
49 template <typename ServiceNameT = Aws::String>
50 void SetServiceName(ServiceNameT&& value) {
51 m_serviceNameHasBeenSet = true;
52 m_serviceName = std::forward<ServiceNameT>(value);
53 }
54 template <typename ServiceNameT = Aws::String>
55 AccessDetail& WithServiceName(ServiceNameT&& value) {
56 SetServiceName(std::forward<ServiceNameT>(value));
57 return *this;
58 }
60
62
75 inline const Aws::String& GetServiceNamespace() const { return m_serviceNamespace; }
76 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
77 template <typename ServiceNamespaceT = Aws::String>
78 void SetServiceNamespace(ServiceNamespaceT&& value) {
79 m_serviceNamespaceHasBeenSet = true;
80 m_serviceNamespace = std::forward<ServiceNamespaceT>(value);
81 }
82 template <typename ServiceNamespaceT = Aws::String>
83 AccessDetail& WithServiceNamespace(ServiceNamespaceT&& value) {
84 SetServiceNamespace(std::forward<ServiceNamespaceT>(value));
85 return *this;
86 }
88
90
97 inline const Aws::String& GetRegion() const { return m_region; }
98 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
99 template <typename RegionT = Aws::String>
100 void SetRegion(RegionT&& value) {
101 m_regionHasBeenSet = true;
102 m_region = std::forward<RegionT>(value);
103 }
104 template <typename RegionT = Aws::String>
105 AccessDetail& WithRegion(RegionT&& value) {
106 SetRegion(std::forward<RegionT>(value));
107 return *this;
108 }
110
112
121 inline const Aws::String& GetEntityPath() const { return m_entityPath; }
122 inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
123 template <typename EntityPathT = Aws::String>
124 void SetEntityPath(EntityPathT&& value) {
125 m_entityPathHasBeenSet = true;
126 m_entityPath = std::forward<EntityPathT>(value);
127 }
128 template <typename EntityPathT = Aws::String>
129 AccessDetail& WithEntityPath(EntityPathT&& value) {
130 SetEntityPath(std::forward<EntityPathT>(value));
131 return *this;
132 }
134
136
145 inline const Aws::Utils::DateTime& GetLastAuthenticatedTime() const { return m_lastAuthenticatedTime; }
146 inline bool LastAuthenticatedTimeHasBeenSet() const { return m_lastAuthenticatedTimeHasBeenSet; }
147 template <typename LastAuthenticatedTimeT = Aws::Utils::DateTime>
148 void SetLastAuthenticatedTime(LastAuthenticatedTimeT&& value) {
149 m_lastAuthenticatedTimeHasBeenSet = true;
150 m_lastAuthenticatedTime = std::forward<LastAuthenticatedTimeT>(value);
151 }
152 template <typename LastAuthenticatedTimeT = Aws::Utils::DateTime>
153 AccessDetail& WithLastAuthenticatedTime(LastAuthenticatedTimeT&& value) {
154 SetLastAuthenticatedTime(std::forward<LastAuthenticatedTimeT>(value));
155 return *this;
156 }
158
160
164 inline int GetTotalAuthenticatedEntities() const { return m_totalAuthenticatedEntities; }
165 inline bool TotalAuthenticatedEntitiesHasBeenSet() const { return m_totalAuthenticatedEntitiesHasBeenSet; }
166 inline void SetTotalAuthenticatedEntities(int value) {
167 m_totalAuthenticatedEntitiesHasBeenSet = true;
168 m_totalAuthenticatedEntities = value;
169 }
172 return *this;
173 }
175 private:
176 Aws::String m_serviceName;
177
178 Aws::String m_serviceNamespace;
179
180 Aws::String m_region;
181
182 Aws::String m_entityPath;
183
184 Aws::Utils::DateTime m_lastAuthenticatedTime{};
185
186 int m_totalAuthenticatedEntities{0};
187 bool m_serviceNameHasBeenSet = false;
188 bool m_serviceNamespaceHasBeenSet = false;
189 bool m_regionHasBeenSet = false;
190 bool m_entityPathHasBeenSet = false;
191 bool m_lastAuthenticatedTimeHasBeenSet = false;
192 bool m_totalAuthenticatedEntitiesHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace IAM
197} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetServiceName(ServiceNameT &&value)
AccessDetail & WithTotalAuthenticatedEntities(int value)
const Aws::Utils::DateTime & GetLastAuthenticatedTime() const
AccessDetail & WithEntityPath(EntityPathT &&value)
bool TotalAuthenticatedEntitiesHasBeenSet() const
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AccessDetail & WithLastAuthenticatedTime(LastAuthenticatedTimeT &&value)
void SetLastAuthenticatedTime(LastAuthenticatedTimeT &&value)
AWS_IAM_API AccessDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEntityPath(EntityPathT &&value)
AccessDetail & WithServiceName(ServiceNameT &&value)
const Aws::String & GetRegion() const
const Aws::String & GetEntityPath() const
const Aws::String & GetServiceNamespace() const
void SetServiceNamespace(ServiceNamespaceT &&value)
AWS_IAM_API AccessDetail()=default
void SetTotalAuthenticatedEntities(int value)
int GetTotalAuthenticatedEntities() const
bool ServiceNamespaceHasBeenSet() const
bool LastAuthenticatedTimeHasBeenSet() const
void SetRegion(RegionT &&value)
AWS_IAM_API AccessDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessDetail & WithRegion(RegionT &&value)
AccessDetail & WithServiceNamespace(ServiceNamespaceT &&value)
const Aws::String & GetServiceName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream