AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCapabilityRequest.h
1
6#pragma once
7#include <aws/b2bi/B2BI_EXPORTS.h>
8#include <aws/b2bi/B2BIRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/b2bi/model/CapabilityType.h>
11#include <aws/b2bi/model/CapabilityConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/b2bi/model/S3Location.h>
14#include <aws/b2bi/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace B2BI
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_B2BI_API CreateCapabilityRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateCapability"; }
37
38 AWS_B2BI_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateCapabilityRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
60 inline CapabilityType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(CapabilityType value) { m_typeHasBeenSet = true; m_type = value; }
63 inline CreateCapabilityRequest& WithType(CapabilityType value) { SetType(value); return *this;}
65
67
70 inline const CapabilityConfiguration& GetConfiguration() const { return m_configuration; }
71 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
72 template<typename ConfigurationT = CapabilityConfiguration>
73 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
74 template<typename ConfigurationT = CapabilityConfiguration>
75 CreateCapabilityRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
77
79
84 inline const Aws::Vector<S3Location>& GetInstructionsDocuments() const { return m_instructionsDocuments; }
85 inline bool InstructionsDocumentsHasBeenSet() const { return m_instructionsDocumentsHasBeenSet; }
86 template<typename InstructionsDocumentsT = Aws::Vector<S3Location>>
87 void SetInstructionsDocuments(InstructionsDocumentsT&& value) { m_instructionsDocumentsHasBeenSet = true; m_instructionsDocuments = std::forward<InstructionsDocumentsT>(value); }
88 template<typename InstructionsDocumentsT = Aws::Vector<S3Location>>
89 CreateCapabilityRequest& WithInstructionsDocuments(InstructionsDocumentsT&& value) { SetInstructionsDocuments(std::forward<InstructionsDocumentsT>(value)); return *this;}
90 template<typename InstructionsDocumentsT = S3Location>
91 CreateCapabilityRequest& AddInstructionsDocuments(InstructionsDocumentsT&& value) { m_instructionsDocumentsHasBeenSet = true; m_instructionsDocuments.emplace_back(std::forward<InstructionsDocumentsT>(value)); return *this; }
93
95
98 inline const Aws::String& GetClientToken() const { return m_clientToken; }
99 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
100 template<typename ClientTokenT = Aws::String>
101 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
102 template<typename ClientTokenT = Aws::String>
103 CreateCapabilityRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
105
107
112 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template<typename TagsT = Aws::Vector<Tag>>
115 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
116 template<typename TagsT = Aws::Vector<Tag>>
117 CreateCapabilityRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
118 template<typename TagsT = Tag>
119 CreateCapabilityRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
127 bool m_typeHasBeenSet = false;
128
129 CapabilityConfiguration m_configuration;
130 bool m_configurationHasBeenSet = false;
131
132 Aws::Vector<S3Location> m_instructionsDocuments;
133 bool m_instructionsDocumentsHasBeenSet = false;
134
136 bool m_clientTokenHasBeenSet = true;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace B2BI
144} // 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