AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
43 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
44 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
45 inline UpdateApiRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
46 inline UpdateApiRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
47 inline UpdateApiRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
49
51
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline UpdateApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline UpdateApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline UpdateApiRequest& WithName(const char* value) { SetName(value); return *this;}
63
65
68 inline const Aws::String& GetOwnerContact() const{ return m_ownerContact; }
69 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
70 inline void SetOwnerContact(const Aws::String& value) { m_ownerContactHasBeenSet = true; m_ownerContact = value; }
71 inline void SetOwnerContact(Aws::String&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::move(value); }
72 inline void SetOwnerContact(const char* value) { m_ownerContactHasBeenSet = true; m_ownerContact.assign(value); }
73 inline UpdateApiRequest& WithOwnerContact(const Aws::String& value) { SetOwnerContact(value); return *this;}
74 inline UpdateApiRequest& WithOwnerContact(Aws::String&& value) { SetOwnerContact(std::move(value)); return *this;}
75 inline UpdateApiRequest& WithOwnerContact(const char* value) { SetOwnerContact(value); return *this;}
77
79
83 inline const EventConfig& GetEventConfig() const{ return m_eventConfig; }
84 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
85 inline void SetEventConfig(const EventConfig& value) { m_eventConfigHasBeenSet = true; m_eventConfig = value; }
86 inline void SetEventConfig(EventConfig&& value) { m_eventConfigHasBeenSet = true; m_eventConfig = std::move(value); }
87 inline UpdateApiRequest& WithEventConfig(const EventConfig& value) { SetEventConfig(value); return *this;}
88 inline UpdateApiRequest& WithEventConfig(EventConfig&& value) { SetEventConfig(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_apiId;
93 bool m_apiIdHasBeenSet = false;
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::String m_ownerContact;
99 bool m_ownerContactHasBeenSet = false;
100
101 EventConfig m_eventConfig;
102 bool m_eventConfigHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace AppSync
107} // namespace Aws
UpdateApiRequest & WithApiId(const Aws::String &value)
const Aws::String & GetApiId() const
void SetApiId(const Aws::String &value)
const Aws::String & GetOwnerContact() const
UpdateApiRequest & WithApiId(Aws::String &&value)
UpdateApiRequest & WithName(const char *value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
void SetOwnerContact(const Aws::String &value)
UpdateApiRequest & WithEventConfig(const EventConfig &value)
UpdateApiRequest & WithOwnerContact(const Aws::String &value)
UpdateApiRequest & WithEventConfig(EventConfig &&value)
const Aws::String & GetName() const
UpdateApiRequest & WithOwnerContact(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateApiRequest & WithApiId(const char *value)
UpdateApiRequest & WithName(Aws::String &&value)
UpdateApiRequest & WithOwnerContact(const char *value)
void SetOwnerContact(const char *value)
UpdateApiRequest & WithName(const Aws::String &value)
void SetEventConfig(EventConfig &&value)
void SetOwnerContact(Aws::String &&value)
const EventConfig & GetEventConfig() const
void SetEventConfig(const EventConfig &value)
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String