AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/dataexchange/DataExchangeRequest.h>
8#include <aws/dataexchange/DataExchange_EXPORTS.h>
9#include <aws/dataexchange/model/AssetConfiguration.h>
10#include <aws/dataexchange/model/RequestDetails.h>
11#include <aws/dataexchange/model/Type.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataExchange {
17namespace Model {
18
22 public:
23 AWS_DATAEXCHANGE_API CreateJobRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
30
31 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
32
34
38 inline const AssetConfiguration& GetAssetConfiguration() const { return m_assetConfiguration; }
39 inline bool AssetConfigurationHasBeenSet() const { return m_assetConfigurationHasBeenSet; }
40 template <typename AssetConfigurationT = AssetConfiguration>
41 void SetAssetConfiguration(AssetConfigurationT&& value) {
42 m_assetConfigurationHasBeenSet = true;
43 m_assetConfiguration = std::forward<AssetConfigurationT>(value);
44 }
45 template <typename AssetConfigurationT = AssetConfiguration>
46 CreateJobRequest& WithAssetConfiguration(AssetConfigurationT&& value) {
47 SetAssetConfiguration(std::forward<AssetConfigurationT>(value));
48 return *this;
49 }
51
53
56 inline const RequestDetails& GetDetails() const { return m_details; }
57 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
58 template <typename DetailsT = RequestDetails>
59 void SetDetails(DetailsT&& value) {
60 m_detailsHasBeenSet = true;
61 m_details = std::forward<DetailsT>(value);
62 }
63 template <typename DetailsT = RequestDetails>
64 CreateJobRequest& WithDetails(DetailsT&& value) {
65 SetDetails(std::forward<DetailsT>(value));
66 return *this;
67 }
69
71
74 inline Type GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(Type value) {
77 m_typeHasBeenSet = true;
78 m_type = value;
79 }
81 SetType(value);
82 return *this;
83 }
85 private:
86 AssetConfiguration m_assetConfiguration;
87
88 RequestDetails m_details;
89
90 Type m_type{Type::NOT_SET};
91 bool m_assetConfigurationHasBeenSet = false;
92 bool m_detailsHasBeenSet = false;
93 bool m_typeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace DataExchange
98} // namespace Aws
const AssetConfiguration & GetAssetConfiguration() const
CreateJobRequest & WithDetails(DetailsT &&value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
CreateJobRequest & WithAssetConfiguration(AssetConfigurationT &&value)
CreateJobRequest & WithType(Type value)
virtual const char * GetServiceRequestName() const override
AWS_DATAEXCHANGE_API CreateJobRequest()=default
void SetAssetConfiguration(AssetConfigurationT &&value)
const RequestDetails & GetDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String