AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListKeysResponseEntry.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/location/model/ApiKeyRestrictions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LocationService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LOCATIONSERVICE_API ListKeysResponseEntry() = default;
38 AWS_LOCATIONSERVICE_API ListKeysResponseEntry(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOCATIONSERVICE_API ListKeysResponseEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKeyName() const { return m_keyName; }
48 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
49 template<typename KeyNameT = Aws::String>
50 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
51 template<typename KeyNameT = Aws::String>
52 ListKeysResponseEntry& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
54
56
61 inline const Aws::Utils::DateTime& GetExpireTime() const { return m_expireTime; }
62 inline bool ExpireTimeHasBeenSet() const { return m_expireTimeHasBeenSet; }
63 template<typename ExpireTimeT = Aws::Utils::DateTime>
64 void SetExpireTime(ExpireTimeT&& value) { m_expireTimeHasBeenSet = true; m_expireTime = std::forward<ExpireTimeT>(value); }
65 template<typename ExpireTimeT = Aws::Utils::DateTime>
66 ListKeysResponseEntry& WithExpireTime(ExpireTimeT&& value) { SetExpireTime(std::forward<ExpireTimeT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 ListKeysResponseEntry& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
83 inline const ApiKeyRestrictions& GetRestrictions() const { return m_restrictions; }
84 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
85 template<typename RestrictionsT = ApiKeyRestrictions>
86 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::forward<RestrictionsT>(value); }
87 template<typename RestrictionsT = ApiKeyRestrictions>
88 ListKeysResponseEntry& WithRestrictions(RestrictionsT&& value) { SetRestrictions(std::forward<RestrictionsT>(value)); return *this;}
90
92
97 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
98 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
99 template<typename CreateTimeT = Aws::Utils::DateTime>
100 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
101 template<typename CreateTimeT = Aws::Utils::DateTime>
102 ListKeysResponseEntry& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
104
106
111 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
112 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
113 template<typename UpdateTimeT = Aws::Utils::DateTime>
114 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
115 template<typename UpdateTimeT = Aws::Utils::DateTime>
116 ListKeysResponseEntry& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
118 private:
119
120 Aws::String m_keyName;
121 bool m_keyNameHasBeenSet = false;
122
123 Aws::Utils::DateTime m_expireTime{};
124 bool m_expireTimeHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 ApiKeyRestrictions m_restrictions;
130 bool m_restrictionsHasBeenSet = false;
131
132 Aws::Utils::DateTime m_createTime{};
133 bool m_createTimeHasBeenSet = false;
134
135 Aws::Utils::DateTime m_updateTime{};
136 bool m_updateTimeHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace LocationService
141} // namespace Aws
AWS_LOCATIONSERVICE_API ListKeysResponseEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RestrictionsHasBeenSet() const
AWS_LOCATIONSERVICE_API ListKeysResponseEntry()=default
bool CreateTimeHasBeenSet() const
ListKeysResponseEntry & WithExpireTime(ExpireTimeT &&value)
void SetDescription(DescriptionT &&value)
bool ExpireTimeHasBeenSet() const
AWS_LOCATIONSERVICE_API ListKeysResponseEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
ListKeysResponseEntry & WithCreateTime(CreateTimeT &&value)
void SetCreateTime(CreateTimeT &&value)
bool DescriptionHasBeenSet() const
void SetUpdateTime(UpdateTimeT &&value)
const Aws::Utils::DateTime & GetExpireTime() const
const Aws::String & GetKeyName() const
void SetRestrictions(RestrictionsT &&value)
bool KeyNameHasBeenSet() const
const ApiKeyRestrictions & GetRestrictions() const
ListKeysResponseEntry & WithDescription(DescriptionT &&value)
void SetKeyName(KeyNameT &&value)
ListKeysResponseEntry & WithRestrictions(RestrictionsT &&value)
ListKeysResponseEntry & WithUpdateTime(UpdateTimeT &&value)
bool UpdateTimeHasBeenSet() const
void SetExpireTime(ExpireTimeT &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
const Aws::Utils::DateTime & GetCreateTime() const
ListKeysResponseEntry & WithKeyName(KeyNameT &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue