AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
36 {
37 public:
38 AWS_IAM_API AccessKeyLastUsed();
39 AWS_IAM_API AccessKeyLastUsed(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
55 inline const Aws::Utils::DateTime& GetLastUsedDate() const{ return m_lastUsedDate; }
56 inline bool LastUsedDateHasBeenSet() const { return m_lastUsedDateHasBeenSet; }
57 inline void SetLastUsedDate(const Aws::Utils::DateTime& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = value; }
58 inline void SetLastUsedDate(Aws::Utils::DateTime&& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = std::move(value); }
59 inline AccessKeyLastUsed& WithLastUsedDate(const Aws::Utils::DateTime& value) { SetLastUsedDate(value); return *this;}
60 inline AccessKeyLastUsed& WithLastUsedDate(Aws::Utils::DateTime&& value) { SetLastUsedDate(std::move(value)); return *this;}
62
64
72 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
73 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
74 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
75 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
76 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
77 inline AccessKeyLastUsed& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
78 inline AccessKeyLastUsed& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
79 inline AccessKeyLastUsed& WithServiceName(const char* value) { SetServiceName(value); return *this;}
81
83
93 inline const Aws::String& GetRegion() const{ return m_region; }
94 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
95 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
96 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
97 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
98 inline AccessKeyLastUsed& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
99 inline AccessKeyLastUsed& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
100 inline AccessKeyLastUsed& WithRegion(const char* value) { SetRegion(value); return *this;}
102 private:
103
104 Aws::Utils::DateTime m_lastUsedDate;
105 bool m_lastUsedDateHasBeenSet = false;
106
107 Aws::String m_serviceName;
108 bool m_serviceNameHasBeenSet = false;
109
110 Aws::String m_region;
111 bool m_regionHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace IAM
116} // namespace Aws
AccessKeyLastUsed & WithLastUsedDate(const Aws::Utils::DateTime &value)
AccessKeyLastUsed & WithRegion(const Aws::String &value)
void SetLastUsedDate(const Aws::Utils::DateTime &value)
AccessKeyLastUsed & WithRegion(Aws::String &&value)
void SetRegion(const Aws::String &value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetServiceName(Aws::String &&value)
void SetServiceName(const Aws::String &value)
const Aws::String & GetRegion() const
AccessKeyLastUsed & WithRegion(const char *value)
AccessKeyLastUsed & WithServiceName(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetLastUsedDate() const
void SetServiceName(const char *value)
AccessKeyLastUsed & WithServiceName(const char *value)
AWS_IAM_API AccessKeyLastUsed & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessKeyLastUsed & WithLastUsedDate(Aws::Utils::DateTime &&value)
AWS_IAM_API AccessKeyLastUsed(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessKeyLastUsed & WithServiceName(const Aws::String &value)
const Aws::String & GetServiceName() const
void SetLastUsedDate(Aws::Utils::DateTime &&value)
void SetRegion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream