AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateApiRequest.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/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppSync {
17namespace Model {
18
22 public:
23 AWS_APPSYNC_API CreateApiRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateApi"; }
30
31 AWS_APPSYNC_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
45 CreateApiRequest& WithName(NameT&& value) {
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetOwnerContact() const { return m_ownerContact; }
56 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
57 template <typename OwnerContactT = Aws::String>
58 void SetOwnerContact(OwnerContactT&& value) {
59 m_ownerContactHasBeenSet = true;
60 m_ownerContact = std::forward<OwnerContactT>(value);
61 }
62 template <typename OwnerContactT = Aws::String>
63 CreateApiRequest& WithOwnerContact(OwnerContactT&& value) {
64 SetOwnerContact(std::forward<OwnerContactT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
72 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
73 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
74 void SetTags(TagsT&& value) {
75 m_tagsHasBeenSet = true;
76 m_tags = std::forward<TagsT>(value);
77 }
78 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
79 CreateApiRequest& WithTags(TagsT&& value) {
80 SetTags(std::forward<TagsT>(value));
81 return *this;
82 }
83 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
84 CreateApiRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
85 m_tagsHasBeenSet = true;
86 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
87 return *this;
88 }
90
92
96 inline const EventConfig& GetEventConfig() const { return m_eventConfig; }
97 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
98 template <typename EventConfigT = EventConfig>
99 void SetEventConfig(EventConfigT&& value) {
100 m_eventConfigHasBeenSet = true;
101 m_eventConfig = std::forward<EventConfigT>(value);
102 }
103 template <typename EventConfigT = EventConfig>
104 CreateApiRequest& WithEventConfig(EventConfigT&& value) {
105 SetEventConfig(std::forward<EventConfigT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_name;
111
112 Aws::String m_ownerContact;
113
115
116 EventConfig m_eventConfig;
117 bool m_nameHasBeenSet = false;
118 bool m_ownerContactHasBeenSet = false;
119 bool m_tagsHasBeenSet = false;
120 bool m_eventConfigHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace AppSync
125} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetEventConfig(EventConfigT &&value)
CreateApiRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetOwnerContact(OwnerContactT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
CreateApiRequest & WithOwnerContact(OwnerContactT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetName() const
AWS_APPSYNC_API CreateApiRequest()=default
const EventConfig & GetEventConfig() const
CreateApiRequest & WithTags(TagsT &&value)
const Aws::String & GetOwnerContact() const
CreateApiRequest & WithName(NameT &&value)
CreateApiRequest & WithEventConfig(EventConfigT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String