AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateApiRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/appsync/model/EventConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AppSync
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_APPSYNC_API CreateApiRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateApi"; }
33
34 AWS_APPSYNC_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 CreateApiRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetOwnerContact() const { return m_ownerContact; }
54 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
55 template<typename OwnerContactT = Aws::String>
56 void SetOwnerContact(OwnerContactT&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::forward<OwnerContactT>(value); }
57 template<typename OwnerContactT = Aws::String>
58 CreateApiRequest& WithOwnerContact(OwnerContactT&& value) { SetOwnerContact(std::forward<OwnerContactT>(value)); return *this;}
60
62
63 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
64 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
65 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
66 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
67 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
68 CreateApiRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
69 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
70 CreateApiRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
71 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
72 }
74
76
80 inline const EventConfig& GetEventConfig() const { return m_eventConfig; }
81 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
82 template<typename EventConfigT = EventConfig>
83 void SetEventConfig(EventConfigT&& value) { m_eventConfigHasBeenSet = true; m_eventConfig = std::forward<EventConfigT>(value); }
84 template<typename EventConfigT = EventConfig>
85 CreateApiRequest& WithEventConfig(EventConfigT&& value) { SetEventConfig(std::forward<EventConfigT>(value)); return *this;}
87 private:
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 Aws::String m_ownerContact;
93 bool m_ownerContactHasBeenSet = false;
94
96 bool m_tagsHasBeenSet = false;
97
98 EventConfig m_eventConfig;
99 bool m_eventConfigHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace AppSync
104} // 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