AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MaintenanceWindowTaskInvocationParameters.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/MaintenanceWindowRunCommandParameters.h>
9#include <aws/ssm/model/MaintenanceWindowAutomationParameters.h>
10#include <aws/ssm/model/MaintenanceWindowStepFunctionsParameters.h>
11#include <aws/ssm/model/MaintenanceWindowLambdaParameters.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
35 {
36 public:
41
42
44
47 inline const MaintenanceWindowRunCommandParameters& GetRunCommand() const { return m_runCommand; }
48 inline bool RunCommandHasBeenSet() const { return m_runCommandHasBeenSet; }
49 template<typename RunCommandT = MaintenanceWindowRunCommandParameters>
50 void SetRunCommand(RunCommandT&& value) { m_runCommandHasBeenSet = true; m_runCommand = std::forward<RunCommandT>(value); }
51 template<typename RunCommandT = MaintenanceWindowRunCommandParameters>
52 MaintenanceWindowTaskInvocationParameters& WithRunCommand(RunCommandT&& value) { SetRunCommand(std::forward<RunCommandT>(value)); return *this;}
54
56
59 inline const MaintenanceWindowAutomationParameters& GetAutomation() const { return m_automation; }
60 inline bool AutomationHasBeenSet() const { return m_automationHasBeenSet; }
61 template<typename AutomationT = MaintenanceWindowAutomationParameters>
62 void SetAutomation(AutomationT&& value) { m_automationHasBeenSet = true; m_automation = std::forward<AutomationT>(value); }
63 template<typename AutomationT = MaintenanceWindowAutomationParameters>
64 MaintenanceWindowTaskInvocationParameters& WithAutomation(AutomationT&& value) { SetAutomation(std::forward<AutomationT>(value)); return *this;}
66
68
71 inline const MaintenanceWindowStepFunctionsParameters& GetStepFunctions() const { return m_stepFunctions; }
72 inline bool StepFunctionsHasBeenSet() const { return m_stepFunctionsHasBeenSet; }
73 template<typename StepFunctionsT = MaintenanceWindowStepFunctionsParameters>
74 void SetStepFunctions(StepFunctionsT&& value) { m_stepFunctionsHasBeenSet = true; m_stepFunctions = std::forward<StepFunctionsT>(value); }
75 template<typename StepFunctionsT = MaintenanceWindowStepFunctionsParameters>
76 MaintenanceWindowTaskInvocationParameters& WithStepFunctions(StepFunctionsT&& value) { SetStepFunctions(std::forward<StepFunctionsT>(value)); return *this;}
78
80
83 inline const MaintenanceWindowLambdaParameters& GetLambda() const { return m_lambda; }
84 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
85 template<typename LambdaT = MaintenanceWindowLambdaParameters>
86 void SetLambda(LambdaT&& value) { m_lambdaHasBeenSet = true; m_lambda = std::forward<LambdaT>(value); }
87 template<typename LambdaT = MaintenanceWindowLambdaParameters>
88 MaintenanceWindowTaskInvocationParameters& WithLambda(LambdaT&& value) { SetLambda(std::forward<LambdaT>(value)); return *this;}
90 private:
91
93 bool m_runCommandHasBeenSet = false;
94
96 bool m_automationHasBeenSet = false;
97
99 bool m_stepFunctionsHasBeenSet = false;
100
102 bool m_lambdaHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SSM
107} // namespace Aws
AWS_SSM_API MaintenanceWindowTaskInvocationParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
MaintenanceWindowTaskInvocationParameters & WithRunCommand(RunCommandT &&value)
MaintenanceWindowTaskInvocationParameters & WithLambda(LambdaT &&value)
MaintenanceWindowTaskInvocationParameters & WithAutomation(AutomationT &&value)
AWS_SSM_API MaintenanceWindowTaskInvocationParameters(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowTaskInvocationParameters & WithStepFunctions(StepFunctionsT &&value)
const MaintenanceWindowStepFunctionsParameters & GetStepFunctions() const
Aws::Utils::Json::JsonValue JsonValue