AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AccessKeyLastUsed.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
33 public:
34 AWS_IAM_API AccessKeyLastUsed() = default;
35 AWS_IAM_API AccessKeyLastUsed(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
50 inline const Aws::Utils::DateTime& GetLastUsedDate() const { return m_lastUsedDate; }
51 inline bool LastUsedDateHasBeenSet() const { return m_lastUsedDateHasBeenSet; }
52 template <typename LastUsedDateT = Aws::Utils::DateTime>
53 void SetLastUsedDate(LastUsedDateT&& value) {
54 m_lastUsedDateHasBeenSet = true;
55 m_lastUsedDate = std::forward<LastUsedDateT>(value);
56 }
57 template <typename LastUsedDateT = Aws::Utils::DateTime>
58 AccessKeyLastUsed& WithLastUsedDate(LastUsedDateT&& value) {
59 SetLastUsedDate(std::forward<LastUsedDateT>(value));
60 return *this;
61 }
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) {
77 m_serviceNameHasBeenSet = true;
78 m_serviceName = std::forward<ServiceNameT>(value);
79 }
80 template <typename ServiceNameT = Aws::String>
81 AccessKeyLastUsed& WithServiceName(ServiceNameT&& value) {
82 SetServiceName(std::forward<ServiceNameT>(value));
83 return *this;
84 }
86
88
98 inline const Aws::String& GetRegion() const { return m_region; }
99 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
100 template <typename RegionT = Aws::String>
101 void SetRegion(RegionT&& value) {
102 m_regionHasBeenSet = true;
103 m_region = std::forward<RegionT>(value);
104 }
105 template <typename RegionT = Aws::String>
106 AccessKeyLastUsed& WithRegion(RegionT&& value) {
107 SetRegion(std::forward<RegionT>(value));
108 return *this;
109 }
111 private:
112 Aws::Utils::DateTime m_lastUsedDate{};
113
114 Aws::String m_serviceName;
115
116 Aws::String m_region;
117 bool m_lastUsedDateHasBeenSet = false;
118 bool m_serviceNameHasBeenSet = false;
119 bool m_regionHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace IAM
124} // 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