AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExportStatus.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/mailmanager/model/ExportState.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 MailManager
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MAILMANAGER_API ExportStatus() = default;
37 AWS_MAILMANAGER_API ExportStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API ExportStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::DateTime& GetSubmissionTimestamp() const { return m_submissionTimestamp; }
47 inline bool SubmissionTimestampHasBeenSet() const { return m_submissionTimestampHasBeenSet; }
48 template<typename SubmissionTimestampT = Aws::Utils::DateTime>
49 void SetSubmissionTimestamp(SubmissionTimestampT&& value) { m_submissionTimestampHasBeenSet = true; m_submissionTimestamp = std::forward<SubmissionTimestampT>(value); }
50 template<typename SubmissionTimestampT = Aws::Utils::DateTime>
51 ExportStatus& WithSubmissionTimestamp(SubmissionTimestampT&& value) { SetSubmissionTimestamp(std::forward<SubmissionTimestampT>(value)); return *this;}
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) { m_completionTimestampHasBeenSet = true; m_completionTimestamp = std::forward<CompletionTimestampT>(value); }
62 template<typename CompletionTimestampT = Aws::Utils::DateTime>
63 ExportStatus& WithCompletionTimestamp(CompletionTimestampT&& value) { SetCompletionTimestamp(std::forward<CompletionTimestampT>(value)); return *this;}
65
67
70 inline ExportState GetState() const { return m_state; }
71 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
72 inline void SetState(ExportState value) { m_stateHasBeenSet = true; m_state = value; }
73 inline ExportStatus& WithState(ExportState value) { SetState(value); return *this;}
75
77
80 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
81 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
82 template<typename ErrorMessageT = Aws::String>
83 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
84 template<typename ErrorMessageT = Aws::String>
85 ExportStatus& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
87 private:
88
89 Aws::Utils::DateTime m_submissionTimestamp{};
90 bool m_submissionTimestampHasBeenSet = false;
91
92 Aws::Utils::DateTime m_completionTimestamp{};
93 bool m_completionTimestampHasBeenSet = false;
94
96 bool m_stateHasBeenSet = false;
97
98 Aws::String m_errorMessage;
99 bool m_errorMessageHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace MailManager
104} // 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