AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateApiKeyRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace AppSync {
15namespace Model {
16
20 public:
21 AWS_APPSYNC_API UpdateApiKeyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateApiKey"; }
28
29 AWS_APPSYNC_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetApiId() const { return m_apiId; }
36 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
37 template <typename ApiIdT = Aws::String>
38 void SetApiId(ApiIdT&& value) {
39 m_apiIdHasBeenSet = true;
40 m_apiId = std::forward<ApiIdT>(value);
41 }
42 template <typename ApiIdT = Aws::String>
43 UpdateApiKeyRequest& WithApiId(ApiIdT&& value) {
44 SetApiId(std::forward<ApiIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
79 UpdateApiKeyRequest& WithDescription(DescriptionT&& value) {
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
90 inline long long GetExpires() const { return m_expires; }
91 inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
92 inline void SetExpires(long long value) {
93 m_expiresHasBeenSet = true;
94 m_expires = value;
95 }
96 inline UpdateApiKeyRequest& WithExpires(long long value) {
97 SetExpires(value);
98 return *this;
99 }
101 private:
102 Aws::String m_apiId;
103
104 Aws::String m_id;
105
106 Aws::String m_description;
107
108 long long m_expires{0};
109 bool m_apiIdHasBeenSet = false;
110 bool m_idHasBeenSet = false;
111 bool m_descriptionHasBeenSet = false;
112 bool m_expiresHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace AppSync
117} // namespace Aws
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateApiKeyRequest & WithDescription(DescriptionT &&value)
UpdateApiKeyRequest & WithApiId(ApiIdT &&value)
AWS_APPSYNC_API UpdateApiKeyRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateApiKeyRequest & WithExpires(long long value)
UpdateApiKeyRequest & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String