AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CalculationStatus.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/athena/model/CalculationExecutionState.h>
10#include <aws/core/utils/memory/stl/AWSString.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 Athena
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ATHENA_API CalculationStatus();
40 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetSubmissionDateTime() const{ return m_submissionDateTime; }
48 inline bool SubmissionDateTimeHasBeenSet() const { return m_submissionDateTimeHasBeenSet; }
49 inline void SetSubmissionDateTime(const Aws::Utils::DateTime& value) { m_submissionDateTimeHasBeenSet = true; m_submissionDateTime = value; }
50 inline void SetSubmissionDateTime(Aws::Utils::DateTime&& value) { m_submissionDateTimeHasBeenSet = true; m_submissionDateTime = std::move(value); }
52 inline CalculationStatus& WithSubmissionDateTime(Aws::Utils::DateTime&& value) { SetSubmissionDateTime(std::move(value)); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetCompletionDateTime() const{ return m_completionDateTime; }
60 inline bool CompletionDateTimeHasBeenSet() const { return m_completionDateTimeHasBeenSet; }
61 inline void SetCompletionDateTime(const Aws::Utils::DateTime& value) { m_completionDateTimeHasBeenSet = true; m_completionDateTime = value; }
62 inline void SetCompletionDateTime(Aws::Utils::DateTime&& value) { m_completionDateTimeHasBeenSet = true; m_completionDateTime = std::move(value); }
64 inline CalculationStatus& WithCompletionDateTime(Aws::Utils::DateTime&& value) { SetCompletionDateTime(std::move(value)); return *this;}
66
68
81 inline const CalculationExecutionState& GetState() const{ return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(const CalculationExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
84 inline void SetState(CalculationExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
85 inline CalculationStatus& WithState(const CalculationExecutionState& value) { SetState(value); return *this;}
86 inline CalculationStatus& WithState(CalculationExecutionState&& value) { SetState(std::move(value)); return *this;}
88
90
94 inline const Aws::String& GetStateChangeReason() const{ return m_stateChangeReason; }
95 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
96 inline void SetStateChangeReason(const Aws::String& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
97 inline void SetStateChangeReason(Aws::String&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
98 inline void SetStateChangeReason(const char* value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason.assign(value); }
99 inline CalculationStatus& WithStateChangeReason(const Aws::String& value) { SetStateChangeReason(value); return *this;}
100 inline CalculationStatus& WithStateChangeReason(Aws::String&& value) { SetStateChangeReason(std::move(value)); return *this;}
101 inline CalculationStatus& WithStateChangeReason(const char* value) { SetStateChangeReason(value); return *this;}
103 private:
104
105 Aws::Utils::DateTime m_submissionDateTime;
106 bool m_submissionDateTimeHasBeenSet = false;
107
108 Aws::Utils::DateTime m_completionDateTime;
109 bool m_completionDateTimeHasBeenSet = false;
110
112 bool m_stateHasBeenSet = false;
113
114 Aws::String m_stateChangeReason;
115 bool m_stateChangeReasonHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Athena
120} // namespace Aws
void SetCompletionDateTime(const Aws::Utils::DateTime &value)
void SetStateChangeReason(Aws::String &&value)
const Aws::String & GetStateChangeReason() const
CalculationStatus & WithSubmissionDateTime(Aws::Utils::DateTime &&value)
void SetState(CalculationExecutionState &&value)
void SetSubmissionDateTime(Aws::Utils::DateTime &&value)
void SetCompletionDateTime(Aws::Utils::DateTime &&value)
CalculationStatus & WithStateChangeReason(const Aws::String &value)
const Aws::Utils::DateTime & GetSubmissionDateTime() const
const CalculationExecutionState & GetState() const
CalculationStatus & WithCompletionDateTime(Aws::Utils::DateTime &&value)
CalculationStatus & WithState(CalculationExecutionState &&value)
CalculationStatus & WithState(const CalculationExecutionState &value)
const Aws::Utils::DateTime & GetCompletionDateTime() const
CalculationStatus & WithStateChangeReason(Aws::String &&value)
CalculationStatus & WithSubmissionDateTime(const Aws::Utils::DateTime &value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStateChangeReason(const char *value)
void SetSubmissionDateTime(const Aws::Utils::DateTime &value)
AWS_ATHENA_API CalculationStatus(Aws::Utils::Json::JsonView jsonValue)
CalculationStatus & WithCompletionDateTime(const Aws::Utils::DateTime &value)
CalculationStatus & WithStateChangeReason(const char *value)
void SetState(const CalculationExecutionState &value)
void SetStateChangeReason(const Aws::String &value)
AWS_ATHENA_API CalculationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue