AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppSync
22{
23namespace Model
24{
25
58 class ApiKey
59 {
60 public:
61 AWS_APPSYNC_API ApiKey();
62 AWS_APPSYNC_API ApiKey(Aws::Utils::Json::JsonView jsonValue);
63 AWS_APPSYNC_API ApiKey& operator=(Aws::Utils::Json::JsonView jsonValue);
64 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
65
66
68
71 inline const Aws::String& GetId() const{ return m_id; }
72 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
73 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
74 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
75 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
76 inline ApiKey& WithId(const Aws::String& value) { SetId(value); return *this;}
77 inline ApiKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 inline ApiKey& WithId(const char* value) { SetId(value); return *this;}
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline ApiKey& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline ApiKey& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline ApiKey& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
100 inline long long GetExpires() const{ return m_expires; }
101 inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
102 inline void SetExpires(long long value) { m_expiresHasBeenSet = true; m_expires = value; }
103 inline ApiKey& WithExpires(long long value) { SetExpires(value); return *this;}
105
107
111 inline long long GetDeletes() const{ return m_deletes; }
112 inline bool DeletesHasBeenSet() const { return m_deletesHasBeenSet; }
113 inline void SetDeletes(long long value) { m_deletesHasBeenSet = true; m_deletes = value; }
114 inline ApiKey& WithDeletes(long long value) { SetDeletes(value); return *this;}
116 private:
117
118 Aws::String m_id;
119 bool m_idHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 long long m_expires;
125 bool m_expiresHasBeenSet = false;
126
127 long long m_deletes;
128 bool m_deletesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace AppSync
133} // namespace Aws
void SetDescription(const Aws::String &value)
Definition ApiKey.h:87
ApiKey & WithId(Aws::String &&value)
Definition ApiKey.h:77
bool IdHasBeenSet() const
Definition ApiKey.h:72
AWS_APPSYNC_API ApiKey(Aws::Utils::Json::JsonView jsonValue)
bool DeletesHasBeenSet() const
Definition ApiKey.h:112
void SetExpires(long long value)
Definition ApiKey.h:102
ApiKey & WithExpires(long long value)
Definition ApiKey.h:103
AWS_APPSYNC_API ApiKey & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiKey & WithId(const Aws::String &value)
Definition ApiKey.h:76
const Aws::String & GetId() const
Definition ApiKey.h:71
long long GetDeletes() const
Definition ApiKey.h:111
void SetDescription(const char *value)
Definition ApiKey.h:89
void SetDescription(Aws::String &&value)
Definition ApiKey.h:88
void SetId(Aws::String &&value)
Definition ApiKey.h:74
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKey & WithDeletes(long long value)
Definition ApiKey.h:114
AWS_APPSYNC_API ApiKey()
ApiKey & WithDescription(const Aws::String &value)
Definition ApiKey.h:90
bool ExpiresHasBeenSet() const
Definition ApiKey.h:101
void SetId(const char *value)
Definition ApiKey.h:75
ApiKey & WithDescription(const char *value)
Definition ApiKey.h:92
const Aws::String & GetDescription() const
Definition ApiKey.h:85
long long GetExpires() const
Definition ApiKey.h:100
void SetDeletes(long long value)
Definition ApiKey.h:113
ApiKey & WithId(const char *value)
Definition ApiKey.h:78
bool DescriptionHasBeenSet() const
Definition ApiKey.h:86
void SetId(const Aws::String &value)
Definition ApiKey.h:73
ApiKey & WithDescription(Aws::String &&value)
Definition ApiKey.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue