AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateMetadataTransferJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iottwinmaker/IoTTwinMakerRequest.h>
10#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
11#include <aws/iottwinmaker/model/DestinationConfiguration.h>
12#include <aws/iottwinmaker/model/SourceConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoTTwinMaker {
18namespace Model {
19
23 public:
24 AWS_IOTTWINMAKER_API CreateMetadataTransferJobRequest() = 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 "CreateMetadataTransferJob"; }
31
32 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetMetadataTransferJobId() const { return m_metadataTransferJobId; }
39 inline bool MetadataTransferJobIdHasBeenSet() const { return m_metadataTransferJobIdHasBeenSet; }
40 template <typename MetadataTransferJobIdT = Aws::String>
41 void SetMetadataTransferJobId(MetadataTransferJobIdT&& value) {
42 m_metadataTransferJobIdHasBeenSet = true;
43 m_metadataTransferJobId = std::forward<MetadataTransferJobIdT>(value);
44 }
45 template <typename MetadataTransferJobIdT = Aws::String>
47 SetMetadataTransferJobId(std::forward<MetadataTransferJobIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<SourceConfiguration>& GetSources() const { return m_sources; }
75 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
76 template <typename SourcesT = Aws::Vector<SourceConfiguration>>
77 void SetSources(SourcesT&& value) {
78 m_sourcesHasBeenSet = true;
79 m_sources = std::forward<SourcesT>(value);
80 }
81 template <typename SourcesT = Aws::Vector<SourceConfiguration>>
83 SetSources(std::forward<SourcesT>(value));
84 return *this;
85 }
86 template <typename SourcesT = SourceConfiguration>
88 m_sourcesHasBeenSet = true;
89 m_sources.emplace_back(std::forward<SourcesT>(value));
90 return *this;
91 }
93
95
98 inline const DestinationConfiguration& GetDestination() const { return m_destination; }
99 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
100 template <typename DestinationT = DestinationConfiguration>
101 void SetDestination(DestinationT&& value) {
102 m_destinationHasBeenSet = true;
103 m_destination = std::forward<DestinationT>(value);
104 }
105 template <typename DestinationT = DestinationConfiguration>
107 SetDestination(std::forward<DestinationT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_metadataTransferJobId;
113
114 Aws::String m_description;
115
117
118 DestinationConfiguration m_destination;
119 bool m_metadataTransferJobIdHasBeenSet = false;
120 bool m_descriptionHasBeenSet = false;
121 bool m_sourcesHasBeenSet = false;
122 bool m_destinationHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace IoTTwinMaker
127} // namespace Aws
CreateMetadataTransferJobRequest & WithSources(SourcesT &&value)
const Aws::Vector< SourceConfiguration > & GetSources() const
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
CreateMetadataTransferJobRequest & WithDestination(DestinationT &&value)
CreateMetadataTransferJobRequest & WithDescription(DescriptionT &&value)
AWS_IOTTWINMAKER_API CreateMetadataTransferJobRequest()=default
CreateMetadataTransferJobRequest & WithMetadataTransferJobId(MetadataTransferJobIdT &&value)
CreateMetadataTransferJobRequest & AddSources(SourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector