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/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();
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 inline void SetLastUsedDate(const Aws::Utils::DateTime& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = value; }
52 inline void SetLastUsedDate(Aws::Utils::DateTime&& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = std::move(value); }
53 inline AccessKeyLastUsed& WithLastUsedDate(const Aws::Utils::DateTime& value) { SetLastUsedDate(value); return *this;}
54 inline AccessKeyLastUsed& WithLastUsedDate(Aws::Utils::DateTime&& value) { SetLastUsedDate(std::move(value)); return *this;}
56
58
63 inline const Aws::String& GetRegion() const{ return m_region; }
64 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
65 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
66 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
67 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
68 inline AccessKeyLastUsed& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
69 inline AccessKeyLastUsed& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
70 inline AccessKeyLastUsed& WithRegion(const char* value) { SetRegion(value); return *this;}
72
74
79 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
80 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
81 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
82 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
83 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
84 inline AccessKeyLastUsed& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
85 inline AccessKeyLastUsed& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
86 inline AccessKeyLastUsed& WithServiceName(const char* value) { SetServiceName(value); return *this;}
88 private:
89
90 Aws::Utils::DateTime m_lastUsedDate;
91 bool m_lastUsedDateHasBeenSet = false;
92
93 Aws::String m_region;
94 bool m_regionHasBeenSet = false;
95
96 Aws::String m_serviceName;
97 bool m_serviceNameHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Lightsail
102} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API AccessKeyLastUsed & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessKeyLastUsed & WithRegion(Aws::String &&value)
AccessKeyLastUsed & WithRegion(const char *value)
AccessKeyLastUsed & WithServiceName(const char *value)
void SetLastUsedDate(const Aws::Utils::DateTime &value)
AccessKeyLastUsed & WithRegion(const Aws::String &value)
AWS_LIGHTSAIL_API AccessKeyLastUsed(Aws::Utils::Json::JsonView jsonValue)
void SetServiceName(const Aws::String &value)
AccessKeyLastUsed & WithLastUsedDate(Aws::Utils::DateTime &&value)
void SetRegion(const Aws::String &value)
AccessKeyLastUsed & WithServiceName(Aws::String &&value)
AccessKeyLastUsed & WithServiceName(const Aws::String &value)
void SetLastUsedDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUsedDate() const
const Aws::String & GetServiceName() const
AccessKeyLastUsed & WithLastUsedDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue