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/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_LIGHTSAIL_API AccessKeyLastUsed() = default;
39 AWS_LIGHTSAIL_API AccessKeyLastUsed(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Utils::DateTime& GetLastUsedDate() const { return m_lastUsedDate; }
50 inline bool LastUsedDateHasBeenSet() const { return m_lastUsedDateHasBeenSet; }
51 template<typename LastUsedDateT = Aws::Utils::DateTime>
52 void SetLastUsedDate(LastUsedDateT&& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = std::forward<LastUsedDateT>(value); }
53 template<typename LastUsedDateT = Aws::Utils::DateTime>
54 AccessKeyLastUsed& WithLastUsedDate(LastUsedDateT&& value) { SetLastUsedDate(std::forward<LastUsedDateT>(value)); return *this;}
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) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
67 template<typename RegionT = Aws::String>
68 AccessKeyLastUsed& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
70
72
77 inline const Aws::String& GetServiceName() const { return m_serviceName; }
78 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
79 template<typename ServiceNameT = Aws::String>
80 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
81 template<typename ServiceNameT = Aws::String>
82 AccessKeyLastUsed& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
84 private:
85
86 Aws::Utils::DateTime m_lastUsedDate{};
87 bool m_lastUsedDateHasBeenSet = false;
88
89 Aws::String m_region;
90 bool m_regionHasBeenSet = false;
91
92 Aws::String m_serviceName;
93 bool m_serviceNameHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Lightsail
98} // 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