AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateApiRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/appsync/model/EventConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppSync {
16namespace Model {
17
21 public:
22 AWS_APPSYNC_API UpdateApiRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateApi"; }
29
30 AWS_APPSYNC_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetApiId() const { return m_apiId; }
37 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
38 template <typename ApiIdT = Aws::String>
39 void SetApiId(ApiIdT&& value) {
40 m_apiIdHasBeenSet = true;
41 m_apiId = std::forward<ApiIdT>(value);
42 }
43 template <typename ApiIdT = Aws::String>
44 UpdateApiRequest& WithApiId(ApiIdT&& value) {
45 SetApiId(std::forward<ApiIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
62 UpdateApiRequest& WithName(NameT&& value) {
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetOwnerContact() const { return m_ownerContact; }
73 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
74 template <typename OwnerContactT = Aws::String>
75 void SetOwnerContact(OwnerContactT&& value) {
76 m_ownerContactHasBeenSet = true;
77 m_ownerContact = std::forward<OwnerContactT>(value);
78 }
79 template <typename OwnerContactT = Aws::String>
80 UpdateApiRequest& WithOwnerContact(OwnerContactT&& value) {
81 SetOwnerContact(std::forward<OwnerContactT>(value));
82 return *this;
83 }
85
87
91 inline const EventConfig& GetEventConfig() const { return m_eventConfig; }
92 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
93 template <typename EventConfigT = EventConfig>
94 void SetEventConfig(EventConfigT&& value) {
95 m_eventConfigHasBeenSet = true;
96 m_eventConfig = std::forward<EventConfigT>(value);
97 }
98 template <typename EventConfigT = EventConfig>
99 UpdateApiRequest& WithEventConfig(EventConfigT&& value) {
100 SetEventConfig(std::forward<EventConfigT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_apiId;
106
107 Aws::String m_name;
108
109 Aws::String m_ownerContact;
110
111 EventConfig m_eventConfig;
112 bool m_apiIdHasBeenSet = false;
113 bool m_nameHasBeenSet = false;
114 bool m_ownerContactHasBeenSet = false;
115 bool m_eventConfigHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace AppSync
120} // namespace Aws
const Aws::String & GetApiId() const
const Aws::String & GetOwnerContact() const
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateApiRequest & WithApiId(ApiIdT &&value)
UpdateApiRequest & WithOwnerContact(OwnerContactT &&value)
UpdateApiRequest & WithEventConfig(EventConfigT &&value)
const Aws::String & GetName() const
void SetEventConfig(EventConfigT &&value)
AWS_APPSYNC_API UpdateApiRequest()=default
virtual const char * GetServiceRequestName() const override
void SetOwnerContact(OwnerContactT &&value)
const EventConfig & GetEventConfig() const
UpdateApiRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String