AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/RequestDetails.h>
10#include <aws/dataexchange/model/Type.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DataExchange {
16namespace Model {
17
21 public:
22 AWS_DATAEXCHANGE_API CreateJobRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
29
30 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
31
33
36 inline const RequestDetails& GetDetails() const { return m_details; }
37 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
38 template <typename DetailsT = RequestDetails>
39 void SetDetails(DetailsT&& value) {
40 m_detailsHasBeenSet = true;
41 m_details = std::forward<DetailsT>(value);
42 }
43 template <typename DetailsT = RequestDetails>
44 CreateJobRequest& WithDetails(DetailsT&& value) {
45 SetDetails(std::forward<DetailsT>(value));
46 return *this;
47 }
49
51
54 inline Type GetType() const { return m_type; }
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 inline void SetType(Type value) {
57 m_typeHasBeenSet = true;
58 m_type = value;
59 }
61 SetType(value);
62 return *this;
63 }
65 private:
66 RequestDetails m_details;
67
68 Type m_type{Type::NOT_SET};
69 bool m_detailsHasBeenSet = false;
70 bool m_typeHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace DataExchange
75} // namespace Aws
CreateJobRequest & WithDetails(DetailsT &&value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
CreateJobRequest & WithType(Type value)
virtual const char * GetServiceRequestName() const override
AWS_DATAEXCHANGE_API CreateJobRequest()=default
const RequestDetails & GetDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String