AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RoleLastUsed.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/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.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
44 {
45 public:
46 AWS_IAM_API RoleLastUsed() = default;
47 AWS_IAM_API RoleLastUsed(const Aws::Utils::Xml::XmlNode& xmlNode);
48 AWS_IAM_API RoleLastUsed& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
52
53
55
63 inline const Aws::Utils::DateTime& GetLastUsedDate() const { return m_lastUsedDate; }
64 inline bool LastUsedDateHasBeenSet() const { return m_lastUsedDateHasBeenSet; }
65 template<typename LastUsedDateT = Aws::Utils::DateTime>
66 void SetLastUsedDate(LastUsedDateT&& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = std::forward<LastUsedDateT>(value); }
67 template<typename LastUsedDateT = Aws::Utils::DateTime>
68 RoleLastUsed& WithLastUsedDate(LastUsedDateT&& value) { SetLastUsedDate(std::forward<LastUsedDateT>(value)); return *this;}
70
72
76 inline const Aws::String& GetRegion() const { return m_region; }
77 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
78 template<typename RegionT = Aws::String>
79 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
80 template<typename RegionT = Aws::String>
81 RoleLastUsed& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
83 private:
84
85 Aws::Utils::DateTime m_lastUsedDate{};
86 bool m_lastUsedDateHasBeenSet = false;
87
88 Aws::String m_region;
89 bool m_regionHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace IAM
94} // namespace Aws
void SetLastUsedDate(LastUsedDateT &&value)
const Aws::Utils::DateTime & GetLastUsedDate() const
AWS_IAM_API RoleLastUsed & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_IAM_API RoleLastUsed(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API RoleLastUsed()=default
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetRegion(RegionT &&value)
const Aws::String & GetRegion() const
RoleLastUsed & WithRegion(RegionT &&value)
RoleLastUsed & WithLastUsedDate(LastUsedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream