AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ApiKey.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppSync {
20namespace Model {
21
54class ApiKey {
55 public:
56 AWS_APPSYNC_API ApiKey() = default;
57 AWS_APPSYNC_API ApiKey(Aws::Utils::Json::JsonView jsonValue);
58 AWS_APPSYNC_API ApiKey& operator=(Aws::Utils::Json::JsonView jsonValue);
59 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
60
62
65 inline const Aws::String& GetId() const { return m_id; }
66 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
67 template <typename IdT = Aws::String>
68 void SetId(IdT&& value) {
69 m_idHasBeenSet = true;
70 m_id = std::forward<IdT>(value);
71 }
72 template <typename IdT = Aws::String>
73 ApiKey& WithId(IdT&& value) {
74 SetId(std::forward<IdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template <typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) {
87 m_descriptionHasBeenSet = true;
88 m_description = std::forward<DescriptionT>(value);
89 }
90 template <typename DescriptionT = Aws::String>
91 ApiKey& WithDescription(DescriptionT&& value) {
92 SetDescription(std::forward<DescriptionT>(value));
93 return *this;
94 }
96
98
102 inline long long GetExpires() const { return m_expires; }
103 inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
104 inline void SetExpires(long long value) {
105 m_expiresHasBeenSet = true;
106 m_expires = value;
107 }
108 inline ApiKey& WithExpires(long long value) {
109 SetExpires(value);
110 return *this;
111 }
113
115
119 inline long long GetDeletes() const { return m_deletes; }
120 inline bool DeletesHasBeenSet() const { return m_deletesHasBeenSet; }
121 inline void SetDeletes(long long value) {
122 m_deletesHasBeenSet = true;
123 m_deletes = value;
124 }
125 inline ApiKey& WithDeletes(long long value) {
126 SetDeletes(value);
127 return *this;
128 }
130 private:
131 Aws::String m_id;
132
133 Aws::String m_description;
134
135 long long m_expires{0};
136
137 long long m_deletes{0};
138 bool m_idHasBeenSet = false;
139 bool m_descriptionHasBeenSet = false;
140 bool m_expiresHasBeenSet = false;
141 bool m_deletesHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace AppSync
146} // namespace Aws
ApiKey & WithDescription(DescriptionT &&value)
Definition ApiKey.h:91
void SetDescription(DescriptionT &&value)
Definition ApiKey.h:86
bool IdHasBeenSet() const
Definition ApiKey.h:66
AWS_APPSYNC_API ApiKey(Aws::Utils::Json::JsonView jsonValue)
bool DeletesHasBeenSet() const
Definition ApiKey.h:120
void SetExpires(long long value)
Definition ApiKey.h:104
ApiKey & WithExpires(long long value)
Definition ApiKey.h:108
AWS_APPSYNC_API ApiKey & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition ApiKey.h:65
long long GetDeletes() const
Definition ApiKey.h:119
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKey & WithDeletes(long long value)
Definition ApiKey.h:125
void SetId(IdT &&value)
Definition ApiKey.h:68
AWS_APPSYNC_API ApiKey()=default
bool ExpiresHasBeenSet() const
Definition ApiKey.h:103
ApiKey & WithId(IdT &&value)
Definition ApiKey.h:73
const Aws::String & GetDescription() const
Definition ApiKey.h:83
long long GetExpires() const
Definition ApiKey.h:102
void SetDeletes(long long value)
Definition ApiKey.h:121
bool DescriptionHasBeenSet() const
Definition ApiKey.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue