AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ExportStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/ExportState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MailManager {
22namespace Model {
23
30 public:
31 AWS_MAILMANAGER_API ExportStatus() = default;
32 AWS_MAILMANAGER_API ExportStatus(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MAILMANAGER_API ExportStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Utils::DateTime& GetSubmissionTimestamp() const { return m_submissionTimestamp; }
41 inline bool SubmissionTimestampHasBeenSet() const { return m_submissionTimestampHasBeenSet; }
42 template <typename SubmissionTimestampT = Aws::Utils::DateTime>
43 void SetSubmissionTimestamp(SubmissionTimestampT&& value) {
44 m_submissionTimestampHasBeenSet = true;
45 m_submissionTimestamp = std::forward<SubmissionTimestampT>(value);
46 }
47 template <typename SubmissionTimestampT = Aws::Utils::DateTime>
48 ExportStatus& WithSubmissionTimestamp(SubmissionTimestampT&& value) {
49 SetSubmissionTimestamp(std::forward<SubmissionTimestampT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCompletionTimestamp() const { return m_completionTimestamp; }
59 inline bool CompletionTimestampHasBeenSet() const { return m_completionTimestampHasBeenSet; }
60 template <typename CompletionTimestampT = Aws::Utils::DateTime>
61 void SetCompletionTimestamp(CompletionTimestampT&& value) {
62 m_completionTimestampHasBeenSet = true;
63 m_completionTimestamp = std::forward<CompletionTimestampT>(value);
64 }
65 template <typename CompletionTimestampT = Aws::Utils::DateTime>
66 ExportStatus& WithCompletionTimestamp(CompletionTimestampT&& value) {
67 SetCompletionTimestamp(std::forward<CompletionTimestampT>(value));
68 return *this;
69 }
71
73
76 inline ExportState GetState() const { return m_state; }
77 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
78 inline void SetState(ExportState value) {
79 m_stateHasBeenSet = true;
80 m_state = value;
81 }
83 SetState(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
93 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
94 template <typename ErrorMessageT = Aws::String>
95 void SetErrorMessage(ErrorMessageT&& value) {
96 m_errorMessageHasBeenSet = true;
97 m_errorMessage = std::forward<ErrorMessageT>(value);
98 }
99 template <typename ErrorMessageT = Aws::String>
100 ExportStatus& WithErrorMessage(ErrorMessageT&& value) {
101 SetErrorMessage(std::forward<ErrorMessageT>(value));
102 return *this;
103 }
105 private:
106 Aws::Utils::DateTime m_submissionTimestamp{};
107
108 Aws::Utils::DateTime m_completionTimestamp{};
109
111
112 Aws::String m_errorMessage;
113 bool m_submissionTimestampHasBeenSet = false;
114 bool m_completionTimestampHasBeenSet = false;
115 bool m_stateHasBeenSet = false;
116 bool m_errorMessageHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace MailManager
121} // namespace Aws
const Aws::Utils::DateTime & GetCompletionTimestamp() const
AWS_MAILMANAGER_API ExportStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ExportStatus & WithCompletionTimestamp(CompletionTimestampT &&value)
AWS_MAILMANAGER_API ExportStatus()=default
AWS_MAILMANAGER_API ExportStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubmissionTimestamp(SubmissionTimestampT &&value)
ExportStatus & WithErrorMessage(ErrorMessageT &&value)
void SetCompletionTimestamp(CompletionTimestampT &&value)
void SetErrorMessage(ErrorMessageT &&value)
const Aws::Utils::DateTime & GetSubmissionTimestamp() const
ExportStatus & WithSubmissionTimestamp(SubmissionTimestampT &&value)
const Aws::String & GetErrorMessage() const
void SetState(ExportState value)
ExportStatus & WithState(ExportState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue