AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
AssociateSourceGraphqlApiRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/appsync/model/SourceApiAssociationConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppSync {
16namespace Model {
17
21 public:
22 AWS_APPSYNC_API AssociateSourceGraphqlApiRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateSourceGraphqlApi"; }
29
30 AWS_APPSYNC_API Aws::String SerializePayload() const override;
31
33
40 inline const Aws::String& GetMergedApiIdentifier() const { return m_mergedApiIdentifier; }
41 inline bool MergedApiIdentifierHasBeenSet() const { return m_mergedApiIdentifierHasBeenSet; }
42 template <typename MergedApiIdentifierT = Aws::String>
43 void SetMergedApiIdentifier(MergedApiIdentifierT&& value) {
44 m_mergedApiIdentifierHasBeenSet = true;
45 m_mergedApiIdentifier = std::forward<MergedApiIdentifierT>(value);
46 }
47 template <typename MergedApiIdentifierT = Aws::String>
49 SetMergedApiIdentifier(std::forward<MergedApiIdentifierT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetSourceApiIdentifier() const { return m_sourceApiIdentifier; }
63 inline bool SourceApiIdentifierHasBeenSet() const { return m_sourceApiIdentifierHasBeenSet; }
64 template <typename SourceApiIdentifierT = Aws::String>
65 void SetSourceApiIdentifier(SourceApiIdentifierT&& value) {
66 m_sourceApiIdentifierHasBeenSet = true;
67 m_sourceApiIdentifier = std::forward<SourceApiIdentifierT>(value);
68 }
69 template <typename SourceApiIdentifierT = Aws::String>
71 SetSourceApiIdentifier(std::forward<SourceApiIdentifierT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const SourceApiAssociationConfig& GetSourceApiAssociationConfig() const { return m_sourceApiAssociationConfig; }
99 inline bool SourceApiAssociationConfigHasBeenSet() const { return m_sourceApiAssociationConfigHasBeenSet; }
100 template <typename SourceApiAssociationConfigT = SourceApiAssociationConfig>
101 void SetSourceApiAssociationConfig(SourceApiAssociationConfigT&& value) {
102 m_sourceApiAssociationConfigHasBeenSet = true;
103 m_sourceApiAssociationConfig = std::forward<SourceApiAssociationConfigT>(value);
104 }
105 template <typename SourceApiAssociationConfigT = SourceApiAssociationConfig>
107 SetSourceApiAssociationConfig(std::forward<SourceApiAssociationConfigT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_mergedApiIdentifier;
113
114 Aws::String m_sourceApiIdentifier;
115
116 Aws::String m_description;
117
118 SourceApiAssociationConfig m_sourceApiAssociationConfig;
119 bool m_mergedApiIdentifierHasBeenSet = false;
120 bool m_sourceApiIdentifierHasBeenSet = false;
121 bool m_descriptionHasBeenSet = false;
122 bool m_sourceApiAssociationConfigHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace AppSync
127} // namespace Aws
AssociateSourceGraphqlApiRequest & WithSourceApiIdentifier(SourceApiIdentifierT &&value)
AssociateSourceGraphqlApiRequest & WithSourceApiAssociationConfig(SourceApiAssociationConfigT &&value)
AssociateSourceGraphqlApiRequest & WithDescription(DescriptionT &&value)
void SetSourceApiAssociationConfig(SourceApiAssociationConfigT &&value)
AssociateSourceGraphqlApiRequest & WithMergedApiIdentifier(MergedApiIdentifierT &&value)
const SourceApiAssociationConfig & GetSourceApiAssociationConfig() const
AWS_APPSYNC_API AssociateSourceGraphqlApiRequest()=default
AWS_APPSYNC_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String