AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateCapabilityRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateCapabilityRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateCapabilityRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const CapabilityType& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const CapabilityType& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(CapabilityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline CreateCapabilityRequest& WithType(const CapabilityType& value) { SetType(value); return *this;}
67 inline CreateCapabilityRequest& WithType(CapabilityType&& value) { SetType(std::move(value)); return *this;}
69
71
74 inline const CapabilityConfiguration& GetConfiguration() const{ return m_configuration; }
75 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
76 inline void SetConfiguration(const CapabilityConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
77 inline void SetConfiguration(CapabilityConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
79 inline CreateCapabilityRequest& WithConfiguration(CapabilityConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
81
83
88 inline const Aws::Vector<S3Location>& GetInstructionsDocuments() const{ return m_instructionsDocuments; }
89 inline bool InstructionsDocumentsHasBeenSet() const { return m_instructionsDocumentsHasBeenSet; }
90 inline void SetInstructionsDocuments(const Aws::Vector<S3Location>& value) { m_instructionsDocumentsHasBeenSet = true; m_instructionsDocuments = value; }
91 inline void SetInstructionsDocuments(Aws::Vector<S3Location>&& value) { m_instructionsDocumentsHasBeenSet = true; m_instructionsDocuments = std::move(value); }
94 inline CreateCapabilityRequest& AddInstructionsDocuments(const S3Location& value) { m_instructionsDocumentsHasBeenSet = true; m_instructionsDocuments.push_back(value); return *this; }
95 inline CreateCapabilityRequest& AddInstructionsDocuments(S3Location&& value) { m_instructionsDocumentsHasBeenSet = true; m_instructionsDocuments.push_back(std::move(value)); return *this; }
97
99
102 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
105 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
106 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
107 inline CreateCapabilityRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
108 inline CreateCapabilityRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
109 inline CreateCapabilityRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
111
113
118 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
121 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline CreateCapabilityRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
123 inline CreateCapabilityRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
124 inline CreateCapabilityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
125 inline CreateCapabilityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
127 private:
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 CapabilityType m_type;
133 bool m_typeHasBeenSet = false;
134
135 CapabilityConfiguration m_configuration;
136 bool m_configurationHasBeenSet = false;
137
138 Aws::Vector<S3Location> m_instructionsDocuments;
139 bool m_instructionsDocumentsHasBeenSet = false;
140
141 Aws::String m_clientToken;
142 bool m_clientTokenHasBeenSet = false;
143
144 Aws::Vector<Tag> m_tags;
145 bool m_tagsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace B2BI
150} // namespace Aws
CreateCapabilityRequest & WithConfiguration(const CapabilityConfiguration &value)
CreateCapabilityRequest & WithClientToken(const Aws::String &value)
void SetType(const CapabilityType &value)
CreateCapabilityRequest & WithClientToken(const char *value)
CreateCapabilityRequest & WithInstructionsDocuments(const Aws::Vector< S3Location > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateCapabilityRequest & WithTags(const Aws::Vector< Tag > &value)
void SetConfiguration(CapabilityConfiguration &&value)
const Aws::Vector< S3Location > & GetInstructionsDocuments() const
void SetInstructionsDocuments(Aws::Vector< S3Location > &&value)
AWS_B2BI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCapabilityRequest & WithTags(Aws::Vector< Tag > &&value)
const CapabilityConfiguration & GetConfiguration() const
CreateCapabilityRequest & WithName(const Aws::String &value)
CreateCapabilityRequest & AddInstructionsDocuments(S3Location &&value)
CreateCapabilityRequest & AddTags(const Tag &value)
CreateCapabilityRequest & WithConfiguration(CapabilityConfiguration &&value)
virtual const char * GetServiceRequestName() const override
CreateCapabilityRequest & WithInstructionsDocuments(Aws::Vector< S3Location > &&value)
void SetConfiguration(const CapabilityConfiguration &value)
CreateCapabilityRequest & WithName(const char *value)
CreateCapabilityRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateCapabilityRequest & AddTags(Tag &&value)
CreateCapabilityRequest & WithName(Aws::String &&value)
AWS_B2BI_API Aws::String SerializePayload() const override
CreateCapabilityRequest & AddInstructionsDocuments(const S3Location &value)
void SetInstructionsDocuments(const Aws::Vector< S3Location > &value)
CreateCapabilityRequest & WithType(CapabilityType &&value)
CreateCapabilityRequest & WithType(const CapabilityType &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