AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccessKeyLastUsed.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
37 {
38 public:
39 AWS_IAM_API AccessKeyLastUsed() = default;
40 AWS_IAM_API AccessKeyLastUsed(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
56 inline const Aws::Utils::DateTime& GetLastUsedDate() const { return m_lastUsedDate; }
57 inline bool LastUsedDateHasBeenSet() const { return m_lastUsedDateHasBeenSet; }
58 template<typename LastUsedDateT = Aws::Utils::DateTime>
59 void SetLastUsedDate(LastUsedDateT&& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = std::forward<LastUsedDateT>(value); }
60 template<typename LastUsedDateT = Aws::Utils::DateTime>
61 AccessKeyLastUsed& WithLastUsedDate(LastUsedDateT&& value) { SetLastUsedDate(std::forward<LastUsedDateT>(value)); return *this;}
63
65
73 inline const Aws::String& GetServiceName() const { return m_serviceName; }
74 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
75 template<typename ServiceNameT = Aws::String>
76 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
77 template<typename ServiceNameT = Aws::String>
78 AccessKeyLastUsed& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
80
82
92 inline const Aws::String& GetRegion() const { return m_region; }
93 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
94 template<typename RegionT = Aws::String>
95 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
96 template<typename RegionT = Aws::String>
97 AccessKeyLastUsed& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
99 private:
100
101 Aws::Utils::DateTime m_lastUsedDate{};
102 bool m_lastUsedDateHasBeenSet = false;
103
104 Aws::String m_serviceName;
105 bool m_serviceNameHasBeenSet = false;
106
107 Aws::String m_region;
108 bool m_regionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace IAM
113} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AccessKeyLastUsed & WithLastUsedDate(LastUsedDateT &&value)
void SetServiceName(ServiceNameT &&value)
const Aws::String & GetRegion() const
AccessKeyLastUsed & WithServiceName(ServiceNameT &&value)
AccessKeyLastUsed & WithRegion(RegionT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetLastUsedDate() const
AWS_IAM_API AccessKeyLastUsed & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLastUsedDate(LastUsedDateT &&value)
AWS_IAM_API AccessKeyLastUsed(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API AccessKeyLastUsed()=default
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