AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RemediationExecutionStep.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/config/model/RemediationExecutionStepState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConfigService
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONFIGSERVICE_API RemediationExecutionStep() = default;
37 AWS_CONFIGSERVICE_API RemediationExecutionStep(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 RemediationExecutionStep& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline RemediationExecutionStepState GetState() const { return m_state; }
59 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
60 inline void SetState(RemediationExecutionStepState value) { m_stateHasBeenSet = true; m_state = value; }
63
65
68 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
69 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
70 template<typename ErrorMessageT = Aws::String>
71 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
72 template<typename ErrorMessageT = Aws::String>
73 RemediationExecutionStep& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
75
77
80 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
81 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
82 template<typename StartTimeT = Aws::Utils::DateTime>
83 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
84 template<typename StartTimeT = Aws::Utils::DateTime>
85 RemediationExecutionStep& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetStopTime() const { return m_stopTime; }
93 inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; }
94 template<typename StopTimeT = Aws::Utils::DateTime>
95 void SetStopTime(StopTimeT&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::forward<StopTimeT>(value); }
96 template<typename StopTimeT = Aws::Utils::DateTime>
97 RemediationExecutionStep& WithStopTime(StopTimeT&& value) { SetStopTime(std::forward<StopTimeT>(value)); return *this;}
99 private:
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
105 bool m_stateHasBeenSet = false;
106
107 Aws::String m_errorMessage;
108 bool m_errorMessageHasBeenSet = false;
109
110 Aws::Utils::DateTime m_startTime{};
111 bool m_startTimeHasBeenSet = false;
112
113 Aws::Utils::DateTime m_stopTime{};
114 bool m_stopTimeHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ConfigService
119} // namespace Aws
RemediationExecutionStep & WithName(NameT &&value)
AWS_CONFIGSERVICE_API RemediationExecutionStep(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API RemediationExecutionStep & operator=(Aws::Utils::Json::JsonView jsonValue)
RemediationExecutionStep & WithState(RemediationExecutionStepState value)
AWS_CONFIGSERVICE_API RemediationExecutionStep()=default
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(RemediationExecutionStepState value)
RemediationExecutionStep & WithStartTime(StartTimeT &&value)
RemediationExecutionStep & WithStopTime(StopTimeT &&value)
RemediationExecutionStep & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue