AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateApiRequest.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appsync/model/EventConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AppSync
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPSYNC_API UpdateApiRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateApi"; }
32
33 AWS_APPSYNC_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetApiId() const { return m_apiId; }
41 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
42 template<typename ApiIdT = Aws::String>
43 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
44 template<typename ApiIdT = Aws::String>
45 UpdateApiRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 UpdateApiRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetOwnerContact() const { return m_ownerContact; }
65 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
66 template<typename OwnerContactT = Aws::String>
67 void SetOwnerContact(OwnerContactT&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::forward<OwnerContactT>(value); }
68 template<typename OwnerContactT = Aws::String>
69 UpdateApiRequest& WithOwnerContact(OwnerContactT&& value) { SetOwnerContact(std::forward<OwnerContactT>(value)); return *this;}
71
73
77 inline const EventConfig& GetEventConfig() const { return m_eventConfig; }
78 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
79 template<typename EventConfigT = EventConfig>
80 void SetEventConfig(EventConfigT&& value) { m_eventConfigHasBeenSet = true; m_eventConfig = std::forward<EventConfigT>(value); }
81 template<typename EventConfigT = EventConfig>
82 UpdateApiRequest& WithEventConfig(EventConfigT&& value) { SetEventConfig(std::forward<EventConfigT>(value)); return *this;}
84 private:
85
86 Aws::String m_apiId;
87 bool m_apiIdHasBeenSet = false;
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 Aws::String m_ownerContact;
93 bool m_ownerContactHasBeenSet = false;
94
95 EventConfig m_eventConfig;
96 bool m_eventConfigHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace AppSync
101} // 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