AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RoleLastUsed.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
40 public:
41 AWS_IAM_API RoleLastUsed() = default;
42 AWS_IAM_API RoleLastUsed(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_IAM_API RoleLastUsed& 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
49
57 inline const Aws::Utils::DateTime& GetLastUsedDate() const { return m_lastUsedDate; }
58 inline bool LastUsedDateHasBeenSet() const { return m_lastUsedDateHasBeenSet; }
59 template <typename LastUsedDateT = Aws::Utils::DateTime>
60 void SetLastUsedDate(LastUsedDateT&& value) {
61 m_lastUsedDateHasBeenSet = true;
62 m_lastUsedDate = std::forward<LastUsedDateT>(value);
63 }
64 template <typename LastUsedDateT = Aws::Utils::DateTime>
65 RoleLastUsed& WithLastUsedDate(LastUsedDateT&& value) {
66 SetLastUsedDate(std::forward<LastUsedDateT>(value));
67 return *this;
68 }
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) {
80 m_regionHasBeenSet = true;
81 m_region = std::forward<RegionT>(value);
82 }
83 template <typename RegionT = Aws::String>
84 RoleLastUsed& WithRegion(RegionT&& value) {
85 SetRegion(std::forward<RegionT>(value));
86 return *this;
87 }
89 private:
90 Aws::Utils::DateTime m_lastUsedDate{};
91
92 Aws::String m_region;
93 bool m_lastUsedDateHasBeenSet = false;
94 bool m_regionHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace IAM
99} // 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