AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AccessKeyLastUsed.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
32 public:
33 AWS_LIGHTSAIL_API AccessKeyLastUsed() = default;
34 AWS_LIGHTSAIL_API AccessKeyLastUsed(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Utils::DateTime& GetLastUsedDate() const { return m_lastUsedDate; }
44 inline bool LastUsedDateHasBeenSet() const { return m_lastUsedDateHasBeenSet; }
45 template <typename LastUsedDateT = Aws::Utils::DateTime>
46 void SetLastUsedDate(LastUsedDateT&& value) {
47 m_lastUsedDateHasBeenSet = true;
48 m_lastUsedDate = std::forward<LastUsedDateT>(value);
49 }
50 template <typename LastUsedDateT = Aws::Utils::DateTime>
51 AccessKeyLastUsed& WithLastUsedDate(LastUsedDateT&& value) {
52 SetLastUsedDate(std::forward<LastUsedDateT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetRegion() const { return m_region; }
64 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
65 template <typename RegionT = Aws::String>
66 void SetRegion(RegionT&& value) {
67 m_regionHasBeenSet = true;
68 m_region = std::forward<RegionT>(value);
69 }
70 template <typename RegionT = Aws::String>
71 AccessKeyLastUsed& WithRegion(RegionT&& value) {
72 SetRegion(std::forward<RegionT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetServiceName() const { return m_serviceName; }
84 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
85 template <typename ServiceNameT = Aws::String>
86 void SetServiceName(ServiceNameT&& value) {
87 m_serviceNameHasBeenSet = true;
88 m_serviceName = std::forward<ServiceNameT>(value);
89 }
90 template <typename ServiceNameT = Aws::String>
91 AccessKeyLastUsed& WithServiceName(ServiceNameT&& value) {
92 SetServiceName(std::forward<ServiceNameT>(value));
93 return *this;
94 }
96 private:
97 Aws::Utils::DateTime m_lastUsedDate{};
98 bool m_lastUsedDateHasBeenSet = false;
99
100 Aws::String m_region;
101 bool m_regionHasBeenSet = false;
102
103 Aws::String m_serviceName;
104 bool m_serviceNameHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Lightsail
109} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API AccessKeyLastUsed & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceName(ServiceNameT &&value)
AccessKeyLastUsed & WithLastUsedDate(LastUsedDateT &&value)
AccessKeyLastUsed & WithServiceName(ServiceNameT &&value)
AWS_LIGHTSAIL_API AccessKeyLastUsed(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API AccessKeyLastUsed()=default
void SetLastUsedDate(LastUsedDateT &&value)
const Aws::Utils::DateTime & GetLastUsedDate() const
const Aws::String & GetServiceName() const
AccessKeyLastUsed & WithRegion(RegionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue