AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateCapabilityRequest.h
1
6#pragma once
7#include <aws/b2bi/B2BIRequest.h>
8#include <aws/b2bi/B2BI_EXPORTS.h>
9#include <aws/b2bi/model/CapabilityConfiguration.h>
10#include <aws/b2bi/model/CapabilityType.h>
11#include <aws/b2bi/model/S3Location.h>
12#include <aws/b2bi/model/Tag.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace B2BI {
21namespace Model {
22
26 public:
27 AWS_B2BI_API CreateCapabilityRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCapability"; }
34
35 AWS_B2BI_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline CapabilityType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(CapabilityType value) {
65 m_typeHasBeenSet = true;
66 m_type = value;
67 }
69 SetType(value);
70 return *this;
71 }
73
75
78 inline const CapabilityConfiguration& GetConfiguration() const { return m_configuration; }
79 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
80 template <typename ConfigurationT = CapabilityConfiguration>
81 void SetConfiguration(ConfigurationT&& value) {
82 m_configurationHasBeenSet = true;
83 m_configuration = std::forward<ConfigurationT>(value);
84 }
85 template <typename ConfigurationT = CapabilityConfiguration>
86 CreateCapabilityRequest& WithConfiguration(ConfigurationT&& value) {
87 SetConfiguration(std::forward<ConfigurationT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Vector<S3Location>& GetInstructionsDocuments() const { return m_instructionsDocuments; }
99 inline bool InstructionsDocumentsHasBeenSet() const { return m_instructionsDocumentsHasBeenSet; }
100 template <typename InstructionsDocumentsT = Aws::Vector<S3Location>>
101 void SetInstructionsDocuments(InstructionsDocumentsT&& value) {
102 m_instructionsDocumentsHasBeenSet = true;
103 m_instructionsDocuments = std::forward<InstructionsDocumentsT>(value);
104 }
105 template <typename InstructionsDocumentsT = Aws::Vector<S3Location>>
106 CreateCapabilityRequest& WithInstructionsDocuments(InstructionsDocumentsT&& value) {
107 SetInstructionsDocuments(std::forward<InstructionsDocumentsT>(value));
108 return *this;
109 }
110 template <typename InstructionsDocumentsT = S3Location>
111 CreateCapabilityRequest& AddInstructionsDocuments(InstructionsDocumentsT&& value) {
112 m_instructionsDocumentsHasBeenSet = true;
113 m_instructionsDocuments.emplace_back(std::forward<InstructionsDocumentsT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetClientToken() const { return m_clientToken; }
123 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
124 template <typename ClientTokenT = Aws::String>
125 void SetClientToken(ClientTokenT&& value) {
126 m_clientTokenHasBeenSet = true;
127 m_clientToken = std::forward<ClientTokenT>(value);
128 }
129 template <typename ClientTokenT = Aws::String>
131 SetClientToken(std::forward<ClientTokenT>(value));
132 return *this;
133 }
135
137
142 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template <typename TagsT = Aws::Vector<Tag>>
145 void SetTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags = std::forward<TagsT>(value);
148 }
149 template <typename TagsT = Aws::Vector<Tag>>
151 SetTags(std::forward<TagsT>(value));
152 return *this;
153 }
154 template <typename TagsT = Tag>
156 m_tagsHasBeenSet = true;
157 m_tags.emplace_back(std::forward<TagsT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_name;
163
165
166 CapabilityConfiguration m_configuration;
167
168 Aws::Vector<S3Location> m_instructionsDocuments;
169
171
172 Aws::Vector<Tag> m_tags;
173 bool m_nameHasBeenSet = false;
174 bool m_typeHasBeenSet = false;
175 bool m_configurationHasBeenSet = false;
176 bool m_instructionsDocumentsHasBeenSet = false;
177 bool m_clientTokenHasBeenSet = true;
178 bool m_tagsHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace B2BI
183} // namespace Aws
CreateCapabilityRequest & AddTags(TagsT &&value)
AWS_B2BI_API CreateCapabilityRequest()=default
const Aws::Vector< S3Location > & GetInstructionsDocuments() const
AWS_B2BI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCapabilityRequest & WithName(NameT &&value)
CreateCapabilityRequest & WithTags(TagsT &&value)
const CapabilityConfiguration & GetConfiguration() const
CreateCapabilityRequest & WithClientToken(ClientTokenT &&value)
CreateCapabilityRequest & WithType(CapabilityType value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
AWS_B2BI_API Aws::String SerializePayload() const override
CreateCapabilityRequest & AddInstructionsDocuments(InstructionsDocumentsT &&value)
void SetInstructionsDocuments(InstructionsDocumentsT &&value)
CreateCapabilityRequest & WithInstructionsDocuments(InstructionsDocumentsT &&value)
CreateCapabilityRequest & WithConfiguration(ConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector