AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
45 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
46 inline CreateApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline CreateApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline CreateApiRequest& WithName(const char* value) { SetName(value); return *this;}
50
52
55 inline const Aws::String& GetOwnerContact() const{ return m_ownerContact; }
56 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
57 inline void SetOwnerContact(const Aws::String& value) { m_ownerContactHasBeenSet = true; m_ownerContact = value; }
58 inline void SetOwnerContact(Aws::String&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::move(value); }
59 inline void SetOwnerContact(const char* value) { m_ownerContactHasBeenSet = true; m_ownerContact.assign(value); }
60 inline CreateApiRequest& WithOwnerContact(const Aws::String& value) { SetOwnerContact(value); return *this;}
61 inline CreateApiRequest& WithOwnerContact(Aws::String&& value) { SetOwnerContact(std::move(value)); return *this;}
62 inline CreateApiRequest& WithOwnerContact(const char* value) { SetOwnerContact(value); return *this;}
64
66
67 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
70 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
71 inline CreateApiRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
72 inline CreateApiRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
73 inline CreateApiRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
74 inline CreateApiRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
75 inline CreateApiRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
76 inline CreateApiRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
77 inline CreateApiRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
78 inline CreateApiRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
79 inline CreateApiRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
81
83
87 inline const EventConfig& GetEventConfig() const{ return m_eventConfig; }
88 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
89 inline void SetEventConfig(const EventConfig& value) { m_eventConfigHasBeenSet = true; m_eventConfig = value; }
90 inline void SetEventConfig(EventConfig&& value) { m_eventConfigHasBeenSet = true; m_eventConfig = std::move(value); }
91 inline CreateApiRequest& WithEventConfig(const EventConfig& value) { SetEventConfig(value); return *this;}
92 inline CreateApiRequest& WithEventConfig(EventConfig&& value) { SetEventConfig(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_ownerContact;
100 bool m_ownerContactHasBeenSet = false;
101
103 bool m_tagsHasBeenSet = false;
104
105 EventConfig m_eventConfig;
106 bool m_eventConfigHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace AppSync
111} // namespace Aws
CreateApiRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateApiRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetOwnerContact(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateApiRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateApiRequest & WithOwnerContact(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
void SetOwnerContact(const char *value)
void SetEventConfig(const EventConfig &value)
void SetOwnerContact(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApiRequest & WithName(const char *value)
const Aws::String & GetName() const
CreateApiRequest & WithEventConfig(EventConfig &&value)
CreateApiRequest & AddTags(const char *key, const char *value)
CreateApiRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const EventConfig & GetEventConfig() const
CreateApiRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateApiRequest & AddTags(const char *key, Aws::String &&value)
CreateApiRequest & WithName(const Aws::String &value)
CreateApiRequest & WithName(Aws::String &&value)
CreateApiRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetName(const Aws::String &value)
CreateApiRequest & WithOwnerContact(Aws::String &&value)
const Aws::String & GetOwnerContact() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateApiRequest & AddTags(Aws::String &&key, const char *value)
CreateApiRequest & WithEventConfig(const EventConfig &value)
void SetEventConfig(EventConfig &&value)
CreateApiRequest & WithOwnerContact(const char *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