AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateCapabilityRequest.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/S3Location.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace B2BI {
18namespace Model {
19
23 public:
24 AWS_B2BI_API UpdateCapabilityRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateCapability"; }
31
32 AWS_B2BI_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetCapabilityId() const { return m_capabilityId; }
41 inline bool CapabilityIdHasBeenSet() const { return m_capabilityIdHasBeenSet; }
42 template <typename CapabilityIdT = Aws::String>
43 void SetCapabilityId(CapabilityIdT&& value) {
44 m_capabilityIdHasBeenSet = true;
45 m_capabilityId = std::forward<CapabilityIdT>(value);
46 }
47 template <typename CapabilityIdT = Aws::String>
48 UpdateCapabilityRequest& WithCapabilityId(CapabilityIdT&& value) {
49 SetCapabilityId(std::forward<CapabilityIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const CapabilityConfiguration& GetConfiguration() const { return m_configuration; }
77 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
78 template <typename ConfigurationT = CapabilityConfiguration>
79 void SetConfiguration(ConfigurationT&& value) {
80 m_configurationHasBeenSet = true;
81 m_configuration = std::forward<ConfigurationT>(value);
82 }
83 template <typename ConfigurationT = CapabilityConfiguration>
84 UpdateCapabilityRequest& WithConfiguration(ConfigurationT&& value) {
85 SetConfiguration(std::forward<ConfigurationT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Vector<S3Location>& GetInstructionsDocuments() const { return m_instructionsDocuments; }
97 inline bool InstructionsDocumentsHasBeenSet() const { return m_instructionsDocumentsHasBeenSet; }
98 template <typename InstructionsDocumentsT = Aws::Vector<S3Location>>
99 void SetInstructionsDocuments(InstructionsDocumentsT&& value) {
100 m_instructionsDocumentsHasBeenSet = true;
101 m_instructionsDocuments = std::forward<InstructionsDocumentsT>(value);
102 }
103 template <typename InstructionsDocumentsT = Aws::Vector<S3Location>>
104 UpdateCapabilityRequest& WithInstructionsDocuments(InstructionsDocumentsT&& value) {
105 SetInstructionsDocuments(std::forward<InstructionsDocumentsT>(value));
106 return *this;
107 }
108 template <typename InstructionsDocumentsT = S3Location>
109 UpdateCapabilityRequest& AddInstructionsDocuments(InstructionsDocumentsT&& value) {
110 m_instructionsDocumentsHasBeenSet = true;
111 m_instructionsDocuments.emplace_back(std::forward<InstructionsDocumentsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_capabilityId;
117
118 Aws::String m_name;
119
120 CapabilityConfiguration m_configuration;
121
122 Aws::Vector<S3Location> m_instructionsDocuments;
123 bool m_capabilityIdHasBeenSet = false;
124 bool m_nameHasBeenSet = false;
125 bool m_configurationHasBeenSet = false;
126 bool m_instructionsDocumentsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace B2BI
131} // namespace Aws
UpdateCapabilityRequest & WithConfiguration(ConfigurationT &&value)
const CapabilityConfiguration & GetConfiguration() const
void SetInstructionsDocuments(InstructionsDocumentsT &&value)
UpdateCapabilityRequest & WithName(NameT &&value)
AWS_B2BI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_B2BI_API UpdateCapabilityRequest()=default
UpdateCapabilityRequest & WithCapabilityId(CapabilityIdT &&value)
AWS_B2BI_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< S3Location > & GetInstructionsDocuments() const
UpdateCapabilityRequest & WithInstructionsDocuments(InstructionsDocumentsT &&value)
UpdateCapabilityRequest & AddInstructionsDocuments(InstructionsDocumentsT &&value)
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