AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateScheduleActionRequest.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/elementalinference/ElementalInferenceRequest.h>
10#include <aws/elementalinference/ElementalInference_EXPORTS.h>
11#include <aws/elementalinference/model/ScheduleActionOperation.h>
12#include <aws/elementalinference/model/ScheduleActionStartConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ElementalInference {
18namespace Model {
19
23 public:
24 AWS_ELEMENTALINFERENCE_API CreateScheduleActionRequest() = 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 "CreateScheduleAction"; }
31
32 AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetActionName() const { return m_actionName; }
58 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
59 template <typename ActionNameT = Aws::String>
60 void SetActionName(ActionNameT&& value) {
61 m_actionNameHasBeenSet = true;
62 m_actionName = std::forward<ActionNameT>(value);
63 }
64 template <typename ActionNameT = Aws::String>
66 SetActionName(std::forward<ActionNameT>(value));
67 return *this;
68 }
70
72
75 inline const ScheduleActionStartConfiguration& GetStartConfiguration() const { return m_startConfiguration; }
76 inline bool StartConfigurationHasBeenSet() const { return m_startConfigurationHasBeenSet; }
77 template <typename StartConfigurationT = ScheduleActionStartConfiguration>
78 void SetStartConfiguration(StartConfigurationT&& value) {
79 m_startConfigurationHasBeenSet = true;
80 m_startConfiguration = std::forward<StartConfigurationT>(value);
81 }
82 template <typename StartConfigurationT = ScheduleActionStartConfiguration>
84 SetStartConfiguration(std::forward<StartConfigurationT>(value));
85 return *this;
86 }
88
90
96 inline const Aws::Vector<ScheduleActionOperation>& GetOperations() const { return m_operations; }
97 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
98 template <typename OperationsT = Aws::Vector<ScheduleActionOperation>>
99 void SetOperations(OperationsT&& value) {
100 m_operationsHasBeenSet = true;
101 m_operations = std::forward<OperationsT>(value);
102 }
103 template <typename OperationsT = Aws::Vector<ScheduleActionOperation>>
105 SetOperations(std::forward<OperationsT>(value));
106 return *this;
107 }
108 template <typename OperationsT = ScheduleActionOperation>
110 m_operationsHasBeenSet = true;
111 m_operations.emplace_back(std::forward<OperationsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_id;
117
118 Aws::String m_actionName;
119
120 ScheduleActionStartConfiguration m_startConfiguration;
121
123 bool m_idHasBeenSet = false;
124 bool m_actionNameHasBeenSet = false;
125 bool m_startConfigurationHasBeenSet = false;
126 bool m_operationsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace ElementalInference
131} // namespace Aws
AWS_ELEMENTALINFERENCE_API CreateScheduleActionRequest()=default
CreateScheduleActionRequest & WithStartConfiguration(StartConfigurationT &&value)
CreateScheduleActionRequest & WithOperations(OperationsT &&value)
const Aws::Vector< ScheduleActionOperation > & GetOperations() const
CreateScheduleActionRequest & WithActionName(ActionNameT &&value)
CreateScheduleActionRequest & AddOperations(OperationsT &&value)
const ScheduleActionStartConfiguration & GetStartConfiguration() const
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector