AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
EntityDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/iam/IAM_EXPORTS.h>
10#include <aws/iam/model/EntityInfo.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
33 public:
34 AWS_IAM_API EntityDetails() = default;
35 AWS_IAM_API EntityDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_IAM_API EntityDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline const EntityInfo& GetEntityInfo() const { return m_entityInfo; }
47 inline bool EntityInfoHasBeenSet() const { return m_entityInfoHasBeenSet; }
48 template <typename EntityInfoT = EntityInfo>
49 void SetEntityInfo(EntityInfoT&& value) {
50 m_entityInfoHasBeenSet = true;
51 m_entityInfo = std::forward<EntityInfoT>(value);
52 }
53 template <typename EntityInfoT = EntityInfo>
54 EntityDetails& WithEntityInfo(EntityInfoT&& value) {
55 SetEntityInfo(std::forward<EntityInfoT>(value));
56 return *this;
57 }
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) {
74 m_lastAuthenticatedHasBeenSet = true;
75 m_lastAuthenticated = std::forward<LastAuthenticatedT>(value);
76 }
77 template <typename LastAuthenticatedT = Aws::Utils::DateTime>
78 EntityDetails& WithLastAuthenticated(LastAuthenticatedT&& value) {
79 SetLastAuthenticated(std::forward<LastAuthenticatedT>(value));
80 return *this;
81 }
83 private:
84 EntityInfo m_entityInfo;
85
86 Aws::Utils::DateTime m_lastAuthenticated{};
87 bool m_entityInfoHasBeenSet = false;
88 bool m_lastAuthenticatedHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace IAM
93} // namespace Aws
AWS_IAM_API EntityDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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
const Aws::Utils::DateTime & GetLastAuthenticated() const
EntityDetails & WithLastAuthenticated(LastAuthenticatedT &&value)
AWS_IAM_API EntityDetails()=default
EntityDetails & WithEntityInfo(EntityInfoT &&value)
void SetEntityInfo(EntityInfoT &&value)
const EntityInfo & GetEntityInfo() const
AWS_IAM_API EntityDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLastAuthenticated(LastAuthenticatedT &&value)
std::basic_ostream< char, std::char_traits< char > > OStream