AWS SDK for C++  1.9.157
AWS SDK for C++
UpdateApiKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AppSync
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateApiKey"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetApiId() const{ return m_apiId; }
39 
43  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
44 
48  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
49 
53  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
54 
58  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
59 
63  inline UpdateApiKeyRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
64 
68  inline UpdateApiKeyRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
69 
73  inline UpdateApiKeyRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
74 
75 
79  inline const Aws::String& GetId() const{ return m_id; }
80 
84  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
85 
89  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
90 
94  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
95 
99  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
100 
104  inline UpdateApiKeyRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
105 
109  inline UpdateApiKeyRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
110 
114  inline UpdateApiKeyRequest& WithId(const char* value) { SetId(value); return *this;}
115 
116 
120  inline const Aws::String& GetDescription() const{ return m_description; }
121 
125  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
126 
130  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
131 
135  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
136 
140  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
141 
145  inline UpdateApiKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
146 
150  inline UpdateApiKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
151 
155  inline UpdateApiKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
156 
157 
162  inline long long GetExpires() const{ return m_expires; }
163 
168  inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
169 
174  inline void SetExpires(long long value) { m_expiresHasBeenSet = true; m_expires = value; }
175 
180  inline UpdateApiKeyRequest& WithExpires(long long value) { SetExpires(value); return *this;}
181 
182  private:
183 
184  Aws::String m_apiId;
185  bool m_apiIdHasBeenSet;
186 
187  Aws::String m_id;
188  bool m_idHasBeenSet;
189 
190  Aws::String m_description;
191  bool m_descriptionHasBeenSet;
192 
193  long long m_expires;
194  bool m_expiresHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace AppSync
199 } // namespace Aws
Aws::AppSync::Model::UpdateApiKeyRequest::GetExpires
long long GetExpires() const
Definition: UpdateApiKeyRequest.h:162
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::UpdateApiKeyRequest::ExpiresHasBeenSet
bool ExpiresHasBeenSet() const
Definition: UpdateApiKeyRequest.h:168
Aws::AppSync::Model::UpdateApiKeyRequest::WithDescription
UpdateApiKeyRequest & WithDescription(Aws::String &&value)
Definition: UpdateApiKeyRequest.h:150
Aws::AppSync::Model::UpdateApiKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateApiKeyRequest.h:30
Aws::AppSync::Model::UpdateApiKeyRequest::GetApiId
const Aws::String & GetApiId() const
Definition: UpdateApiKeyRequest.h:38
Aws::AppSync::Model::UpdateApiKeyRequest::SetId
void SetId(const char *value)
Definition: UpdateApiKeyRequest.h:99
Aws::AppSync::Model::UpdateApiKeyRequest::WithExpires
UpdateApiKeyRequest & WithExpires(long long value)
Definition: UpdateApiKeyRequest.h:180
Aws::AppSync::Model::UpdateApiKeyRequest::SetId
void SetId(Aws::String &&value)
Definition: UpdateApiKeyRequest.h:94
Aws::AppSync::Model::UpdateApiKeyRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateApiKeyRequest.h:120
AppSync_EXPORTS.h
Aws::AppSync::Model::UpdateApiKeyRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: UpdateApiKeyRequest.h:53
Aws::AppSync::Model::UpdateApiKeyRequest::WithId
UpdateApiKeyRequest & WithId(Aws::String &&value)
Definition: UpdateApiKeyRequest.h:109
Aws::AppSync::Model::UpdateApiKeyRequest::WithId
UpdateApiKeyRequest & WithId(const Aws::String &value)
Definition: UpdateApiKeyRequest.h:104
Aws::AppSync::Model::UpdateApiKeyRequest::WithDescription
UpdateApiKeyRequest & WithDescription(const Aws::String &value)
Definition: UpdateApiKeyRequest.h:145
Aws::AppSync::Model::UpdateApiKeyRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateApiKeyRequest.h:135
Aws::AppSync::Model::UpdateApiKeyRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: UpdateApiKeyRequest.h:48
Aws::AppSync::Model::UpdateApiKeyRequest::WithApiId
UpdateApiKeyRequest & WithApiId(Aws::String &&value)
Definition: UpdateApiKeyRequest.h:68
Aws::AppSync::Model::UpdateApiKeyRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateApiKeyRequest.h:84
Aws::AppSync::Model::UpdateApiKeyRequest::GetId
const Aws::String & GetId() const
Definition: UpdateApiKeyRequest.h:79
Aws::AppSync::Model::UpdateApiKeyRequest
Definition: UpdateApiKeyRequest.h:22
Aws::AppSync::Model::UpdateApiKeyRequest::SetExpires
void SetExpires(long long value)
Definition: UpdateApiKeyRequest.h:174
Aws::AppSync::Model::UpdateApiKeyRequest::SetId
void SetId(const Aws::String &value)
Definition: UpdateApiKeyRequest.h:89
Aws::AppSync::Model::UpdateApiKeyRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::AppSync::Model::UpdateApiKeyRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateApiKeyRequest.h:130
Aws::AppSync::Model::UpdateApiKeyRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: UpdateApiKeyRequest.h:43
Aws::AppSync::Model::UpdateApiKeyRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateApiKeyRequest.h:140
Aws::AppSync::Model::UpdateApiKeyRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateApiKeyRequest.h:125
Aws::AppSync::Model::UpdateApiKeyRequest::SetApiId
void SetApiId(const char *value)
Definition: UpdateApiKeyRequest.h:58
Aws::AppSync::Model::UpdateApiKeyRequest::WithDescription
UpdateApiKeyRequest & WithDescription(const char *value)
Definition: UpdateApiKeyRequest.h:155
AppSyncRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::UpdateApiKeyRequest::WithId
UpdateApiKeyRequest & WithId(const char *value)
Definition: UpdateApiKeyRequest.h:114
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::AppSync::Model::UpdateApiKeyRequest::WithApiId
UpdateApiKeyRequest & WithApiId(const Aws::String &value)
Definition: UpdateApiKeyRequest.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::UpdateApiKeyRequest::WithApiId
UpdateApiKeyRequest & WithApiId(const char *value)
Definition: UpdateApiKeyRequest.h:73
Aws::AppSync::Model::UpdateApiKeyRequest::UpdateApiKeyRequest
UpdateApiKeyRequest()