AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccessDetail.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace IAM
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_IAM_API AccessDetail() = default;
42 AWS_IAM_API AccessDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_IAM_API AccessDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetServiceName() const { return m_serviceName; }
54 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
55 template<typename ServiceNameT = Aws::String>
56 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
57 template<typename ServiceNameT = Aws::String>
58 AccessDetail& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
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) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::forward<ServiceNamespaceT>(value); }
79 template<typename ServiceNamespaceT = Aws::String>
80 AccessDetail& WithServiceNamespace(ServiceNamespaceT&& value) { SetServiceNamespace(std::forward<ServiceNamespaceT>(value)); return *this;}
82
84
91 inline const Aws::String& GetRegion() const { return m_region; }
92 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
93 template<typename RegionT = Aws::String>
94 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
95 template<typename RegionT = Aws::String>
96 AccessDetail& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
98
100
109 inline const Aws::String& GetEntityPath() const { return m_entityPath; }
110 inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
111 template<typename EntityPathT = Aws::String>
112 void SetEntityPath(EntityPathT&& value) { m_entityPathHasBeenSet = true; m_entityPath = std::forward<EntityPathT>(value); }
113 template<typename EntityPathT = Aws::String>
114 AccessDetail& WithEntityPath(EntityPathT&& value) { SetEntityPath(std::forward<EntityPathT>(value)); return *this;}
116
118
127 inline const Aws::Utils::DateTime& GetLastAuthenticatedTime() const { return m_lastAuthenticatedTime; }
128 inline bool LastAuthenticatedTimeHasBeenSet() const { return m_lastAuthenticatedTimeHasBeenSet; }
129 template<typename LastAuthenticatedTimeT = Aws::Utils::DateTime>
130 void SetLastAuthenticatedTime(LastAuthenticatedTimeT&& value) { m_lastAuthenticatedTimeHasBeenSet = true; m_lastAuthenticatedTime = std::forward<LastAuthenticatedTimeT>(value); }
131 template<typename LastAuthenticatedTimeT = Aws::Utils::DateTime>
132 AccessDetail& WithLastAuthenticatedTime(LastAuthenticatedTimeT&& value) { SetLastAuthenticatedTime(std::forward<LastAuthenticatedTimeT>(value)); return *this;}
134
136
140 inline int GetTotalAuthenticatedEntities() const { return m_totalAuthenticatedEntities; }
141 inline bool TotalAuthenticatedEntitiesHasBeenSet() const { return m_totalAuthenticatedEntitiesHasBeenSet; }
142 inline void SetTotalAuthenticatedEntities(int value) { m_totalAuthenticatedEntitiesHasBeenSet = true; m_totalAuthenticatedEntities = value; }
145 private:
146
147 Aws::String m_serviceName;
148 bool m_serviceNameHasBeenSet = false;
149
150 Aws::String m_serviceNamespace;
151 bool m_serviceNamespaceHasBeenSet = false;
152
153 Aws::String m_region;
154 bool m_regionHasBeenSet = false;
155
156 Aws::String m_entityPath;
157 bool m_entityPathHasBeenSet = false;
158
159 Aws::Utils::DateTime m_lastAuthenticatedTime{};
160 bool m_lastAuthenticatedTimeHasBeenSet = false;
161
162 int m_totalAuthenticatedEntities{0};
163 bool m_totalAuthenticatedEntitiesHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace IAM
168} // 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