AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
41 {
42 public:
43 AWS_IAM_API RoleLastUsed();
44 AWS_IAM_API RoleLastUsed(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_IAM_API RoleLastUsed& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
60 inline const Aws::Utils::DateTime& GetLastUsedDate() const{ return m_lastUsedDate; }
61 inline bool LastUsedDateHasBeenSet() const { return m_lastUsedDateHasBeenSet; }
62 inline void SetLastUsedDate(const Aws::Utils::DateTime& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = value; }
63 inline void SetLastUsedDate(Aws::Utils::DateTime&& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = std::move(value); }
64 inline RoleLastUsed& WithLastUsedDate(const Aws::Utils::DateTime& value) { SetLastUsedDate(value); return *this;}
65 inline RoleLastUsed& WithLastUsedDate(Aws::Utils::DateTime&& value) { SetLastUsedDate(std::move(value)); return *this;}
67
69
73 inline const Aws::String& GetRegion() const{ return m_region; }
74 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
75 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
76 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
77 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
78 inline RoleLastUsed& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
79 inline RoleLastUsed& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
80 inline RoleLastUsed& WithRegion(const char* value) { SetRegion(value); return *this;}
82 private:
83
84 Aws::Utils::DateTime m_lastUsedDate;
85 bool m_lastUsedDateHasBeenSet = false;
86
87 Aws::String m_region;
88 bool m_regionHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace IAM
93} // namespace Aws
void SetLastUsedDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastUsedDate() const
AWS_IAM_API RoleLastUsed & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRegion(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetRegion(const Aws::String &value)
void SetLastUsedDate(Aws::Utils::DateTime &&value)
AWS_IAM_API RoleLastUsed(const Aws::Utils::Xml::XmlNode &xmlNode)
RoleLastUsed & WithRegion(const Aws::String &value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RoleLastUsed & WithLastUsedDate(const Aws::Utils::DateTime &value)
void SetRegion(const char *value)
const Aws::String & GetRegion() const
RoleLastUsed & WithLastUsedDate(Aws::Utils::DateTime &&value)
RoleLastUsed & WithRegion(const char *value)
RoleLastUsed & WithRegion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream