AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
38 {
39 public:
40 AWS_IAM_API AccessDetail();
41 AWS_IAM_API AccessDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_IAM_API AccessDetail& operator=(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 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
55 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
56 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
57 inline AccessDetail& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
58 inline AccessDetail& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
59 inline AccessDetail& WithServiceName(const char* value) { SetServiceName(value); return *this;}
61
63
76 inline const Aws::String& GetServiceNamespace() const{ return m_serviceNamespace; }
77 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
78 inline void SetServiceNamespace(const Aws::String& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
79 inline void SetServiceNamespace(Aws::String&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
80 inline void SetServiceNamespace(const char* value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace.assign(value); }
81 inline AccessDetail& WithServiceNamespace(const Aws::String& value) { SetServiceNamespace(value); return *this;}
82 inline AccessDetail& WithServiceNamespace(Aws::String&& value) { SetServiceNamespace(std::move(value)); return *this;}
83 inline AccessDetail& WithServiceNamespace(const char* value) { SetServiceNamespace(value); return *this;}
85
87
94 inline const Aws::String& GetRegion() const{ return m_region; }
95 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
96 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
97 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
98 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
99 inline AccessDetail& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
100 inline AccessDetail& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
101 inline AccessDetail& WithRegion(const char* value) { SetRegion(value); return *this;}
103
105
114 inline const Aws::String& GetEntityPath() const{ return m_entityPath; }
115 inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
116 inline void SetEntityPath(const Aws::String& value) { m_entityPathHasBeenSet = true; m_entityPath = value; }
117 inline void SetEntityPath(Aws::String&& value) { m_entityPathHasBeenSet = true; m_entityPath = std::move(value); }
118 inline void SetEntityPath(const char* value) { m_entityPathHasBeenSet = true; m_entityPath.assign(value); }
119 inline AccessDetail& WithEntityPath(const Aws::String& value) { SetEntityPath(value); return *this;}
120 inline AccessDetail& WithEntityPath(Aws::String&& value) { SetEntityPath(std::move(value)); return *this;}
121 inline AccessDetail& WithEntityPath(const char* value) { SetEntityPath(value); return *this;}
123
125
134 inline const Aws::Utils::DateTime& GetLastAuthenticatedTime() const{ return m_lastAuthenticatedTime; }
135 inline bool LastAuthenticatedTimeHasBeenSet() const { return m_lastAuthenticatedTimeHasBeenSet; }
136 inline void SetLastAuthenticatedTime(const Aws::Utils::DateTime& value) { m_lastAuthenticatedTimeHasBeenSet = true; m_lastAuthenticatedTime = value; }
137 inline void SetLastAuthenticatedTime(Aws::Utils::DateTime&& value) { m_lastAuthenticatedTimeHasBeenSet = true; m_lastAuthenticatedTime = std::move(value); }
139 inline AccessDetail& WithLastAuthenticatedTime(Aws::Utils::DateTime&& value) { SetLastAuthenticatedTime(std::move(value)); return *this;}
141
143
147 inline int GetTotalAuthenticatedEntities() const{ return m_totalAuthenticatedEntities; }
148 inline bool TotalAuthenticatedEntitiesHasBeenSet() const { return m_totalAuthenticatedEntitiesHasBeenSet; }
149 inline void SetTotalAuthenticatedEntities(int value) { m_totalAuthenticatedEntitiesHasBeenSet = true; m_totalAuthenticatedEntities = value; }
152 private:
153
154 Aws::String m_serviceName;
155 bool m_serviceNameHasBeenSet = false;
156
157 Aws::String m_serviceNamespace;
158 bool m_serviceNamespaceHasBeenSet = false;
159
160 Aws::String m_region;
161 bool m_regionHasBeenSet = false;
162
163 Aws::String m_entityPath;
164 bool m_entityPathHasBeenSet = false;
165
166 Aws::Utils::DateTime m_lastAuthenticatedTime;
167 bool m_lastAuthenticatedTimeHasBeenSet = false;
168
169 int m_totalAuthenticatedEntities;
170 bool m_totalAuthenticatedEntitiesHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace IAM
175} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AccessDetail & WithEntityPath(const Aws::String &value)
AccessDetail & WithServiceNamespace(const Aws::String &value)
void SetEntityPath(const Aws::String &value)
AccessDetail & WithTotalAuthenticatedEntities(int value)
const Aws::Utils::DateTime & GetLastAuthenticatedTime() const
bool TotalAuthenticatedEntitiesHasBeenSet() const
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetServiceName(Aws::String &&value)
AccessDetail & WithLastAuthenticatedTime(const Aws::Utils::DateTime &value)
void SetServiceNamespace(const Aws::String &value)
void SetLastAuthenticatedTime(const Aws::Utils::DateTime &value)
void SetServiceName(const char *value)
AWS_IAM_API AccessDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessDetail & WithEntityPath(const char *value)
void SetRegion(const Aws::String &value)
void SetEntityPath(const char *value)
AccessDetail & WithServiceNamespace(Aws::String &&value)
void SetEntityPath(Aws::String &&value)
void SetServiceName(const Aws::String &value)
void SetLastAuthenticatedTime(Aws::Utils::DateTime &&value)
AccessDetail & WithRegion(const char *value)
AccessDetail & WithServiceName(Aws::String &&value)
const Aws::String & GetRegion() const
const Aws::String & GetEntityPath() const
AccessDetail & WithServiceName(const Aws::String &value)
const Aws::String & GetServiceNamespace() const
AccessDetail & WithServiceName(const char *value)
void SetRegion(const char *value)
void SetTotalAuthenticatedEntities(int value)
int GetTotalAuthenticatedEntities() const
AccessDetail & WithRegion(const Aws::String &value)
void SetServiceNamespace(const char *value)
bool ServiceNamespaceHasBeenSet() const
bool LastAuthenticatedTimeHasBeenSet() const
AWS_IAM_API AccessDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessDetail & WithEntityPath(Aws::String &&value)
AccessDetail & WithLastAuthenticatedTime(Aws::Utils::DateTime &&value)
void SetServiceNamespace(Aws::String &&value)
AccessDetail & WithServiceNamespace(const char *value)
void SetRegion(Aws::String &&value)
AccessDetail & WithRegion(Aws::String &&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