AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline RemediationExecutionStep& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline RemediationExecutionStep& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline RemediationExecutionStep& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const RemediationExecutionStepState& GetState() const{ return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 inline void SetState(const RemediationExecutionStepState& value) { m_stateHasBeenSet = true; m_state = value; }
63 inline void SetState(RemediationExecutionStepState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
64 inline RemediationExecutionStep& WithState(const RemediationExecutionStepState& value) { SetState(value); return *this;}
65 inline RemediationExecutionStep& WithState(RemediationExecutionStepState&& value) { SetState(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
73 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
74 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
75 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
76 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
77 inline RemediationExecutionStep& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
78 inline RemediationExecutionStep& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
79 inline RemediationExecutionStep& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
87 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
88 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
89 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
90 inline RemediationExecutionStep& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
91 inline RemediationExecutionStep& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetStopTime() const{ return m_stopTime; }
99 inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; }
100 inline void SetStopTime(const Aws::Utils::DateTime& value) { m_stopTimeHasBeenSet = true; m_stopTime = value; }
101 inline void SetStopTime(Aws::Utils::DateTime&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::move(value); }
102 inline RemediationExecutionStep& WithStopTime(const Aws::Utils::DateTime& value) { SetStopTime(value); return *this;}
103 inline RemediationExecutionStep& WithStopTime(Aws::Utils::DateTime&& value) { SetStopTime(std::move(value)); return *this;}
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
111 bool m_stateHasBeenSet = false;
112
113 Aws::String m_errorMessage;
114 bool m_errorMessageHasBeenSet = false;
115
116 Aws::Utils::DateTime m_startTime;
117 bool m_startTimeHasBeenSet = false;
118
119 Aws::Utils::DateTime m_stopTime;
120 bool m_stopTimeHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ConfigService
125} // namespace Aws
AWS_CONFIGSERVICE_API RemediationExecutionStep(Aws::Utils::Json::JsonView jsonValue)
RemediationExecutionStep & WithErrorMessage(Aws::String &&value)
RemediationExecutionStep & WithState(const RemediationExecutionStepState &value)
AWS_CONFIGSERVICE_API RemediationExecutionStep & operator=(Aws::Utils::Json::JsonView jsonValue)
const RemediationExecutionStepState & GetState() const
RemediationExecutionStep & WithName(Aws::String &&value)
void SetState(RemediationExecutionStepState &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RemediationExecutionStep & WithStopTime(const Aws::Utils::DateTime &value)
RemediationExecutionStep & WithStartTime(const Aws::Utils::DateTime &value)
RemediationExecutionStep & WithErrorMessage(const char *value)
RemediationExecutionStep & WithName(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
RemediationExecutionStep & WithName(const Aws::String &value)
RemediationExecutionStep & WithState(RemediationExecutionStepState &&value)
void SetState(const RemediationExecutionStepState &value)
RemediationExecutionStep & WithStopTime(Aws::Utils::DateTime &&value)
RemediationExecutionStep & WithErrorMessage(const Aws::String &value)
RemediationExecutionStep & WithStartTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue