AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssessmentRunStateChange.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/inspector/model/AssessmentRunState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR_API AssessmentRunStateChange();
39 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::DateTime& GetStateChangedAt() const{ return m_stateChangedAt; }
47 inline bool StateChangedAtHasBeenSet() const { return m_stateChangedAtHasBeenSet; }
48 inline void SetStateChangedAt(const Aws::Utils::DateTime& value) { m_stateChangedAtHasBeenSet = true; m_stateChangedAt = value; }
49 inline void SetStateChangedAt(Aws::Utils::DateTime&& value) { m_stateChangedAtHasBeenSet = true; m_stateChangedAt = std::move(value); }
51 inline AssessmentRunStateChange& WithStateChangedAt(Aws::Utils::DateTime&& value) { SetStateChangedAt(std::move(value)); return *this;}
53
55
58 inline const AssessmentRunState& GetState() const{ return m_state; }
59 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
60 inline void SetState(const AssessmentRunState& value) { m_stateHasBeenSet = true; m_state = value; }
61 inline void SetState(AssessmentRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
62 inline AssessmentRunStateChange& WithState(const AssessmentRunState& value) { SetState(value); return *this;}
63 inline AssessmentRunStateChange& WithState(AssessmentRunState&& value) { SetState(std::move(value)); return *this;}
65 private:
66
67 Aws::Utils::DateTime m_stateChangedAt;
68 bool m_stateChangedAtHasBeenSet = false;
69
70 AssessmentRunState m_state;
71 bool m_stateHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Inspector
76} // namespace Aws
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentRunStateChange & WithStateChangedAt(const Aws::Utils::DateTime &value)
AssessmentRunStateChange & WithState(const AssessmentRunState &value)
AWS_INSPECTOR_API AssessmentRunStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API AssessmentRunStateChange(Aws::Utils::Json::JsonView jsonValue)
AssessmentRunStateChange & WithState(AssessmentRunState &&value)
void SetStateChangedAt(const Aws::Utils::DateTime &value)
AssessmentRunStateChange & WithStateChangedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStateChangedAt() const
Aws::Utils::Json::JsonValue JsonValue