AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSString.h>
10#include <aws/mailmanager/model/ExportState.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();
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& GetCompletionTimestamp() const{ return m_completionTimestamp; }
47 inline bool CompletionTimestampHasBeenSet() const { return m_completionTimestampHasBeenSet; }
48 inline void SetCompletionTimestamp(const Aws::Utils::DateTime& value) { m_completionTimestampHasBeenSet = true; m_completionTimestamp = value; }
49 inline void SetCompletionTimestamp(Aws::Utils::DateTime&& value) { m_completionTimestampHasBeenSet = true; m_completionTimestamp = std::move(value); }
51 inline ExportStatus& WithCompletionTimestamp(Aws::Utils::DateTime&& value) { SetCompletionTimestamp(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
61 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
62 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
63 inline ExportStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
64 inline ExportStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
65 inline ExportStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
67
69
72 inline const ExportState& GetState() const{ return m_state; }
73 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 inline void SetState(const ExportState& value) { m_stateHasBeenSet = true; m_state = value; }
75 inline void SetState(ExportState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
76 inline ExportStatus& WithState(const ExportState& value) { SetState(value); return *this;}
77 inline ExportStatus& WithState(ExportState&& value) { SetState(std::move(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetSubmissionTimestamp() const{ return m_submissionTimestamp; }
85 inline bool SubmissionTimestampHasBeenSet() const { return m_submissionTimestampHasBeenSet; }
86 inline void SetSubmissionTimestamp(const Aws::Utils::DateTime& value) { m_submissionTimestampHasBeenSet = true; m_submissionTimestamp = value; }
87 inline void SetSubmissionTimestamp(Aws::Utils::DateTime&& value) { m_submissionTimestampHasBeenSet = true; m_submissionTimestamp = std::move(value); }
89 inline ExportStatus& WithSubmissionTimestamp(Aws::Utils::DateTime&& value) { SetSubmissionTimestamp(std::move(value)); return *this;}
91 private:
92
93 Aws::Utils::DateTime m_completionTimestamp;
94 bool m_completionTimestampHasBeenSet = false;
95
96 Aws::String m_errorMessage;
97 bool m_errorMessageHasBeenSet = false;
98
99 ExportState m_state;
100 bool m_stateHasBeenSet = false;
101
102 Aws::Utils::DateTime m_submissionTimestamp;
103 bool m_submissionTimestampHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace MailManager
108} // namespace Aws
ExportStatus & WithCompletionTimestamp(Aws::Utils::DateTime &&value)
ExportStatus & WithErrorMessage(const char *value)
void SetState(const ExportState &value)
ExportStatus & WithErrorMessage(const Aws::String &value)
ExportStatus & WithSubmissionTimestamp(Aws::Utils::DateTime &&value)
void SetErrorMessage(Aws::String &&value)
AWS_MAILMANAGER_API ExportStatus()
const Aws::Utils::DateTime & GetCompletionTimestamp() const
ExportStatus & WithCompletionTimestamp(const Aws::Utils::DateTime &value)
AWS_MAILMANAGER_API ExportStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ExportStatus & WithState(ExportState &&value)
ExportStatus & WithErrorMessage(Aws::String &&value)
AWS_MAILMANAGER_API ExportStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(ExportState &&value)
void SetCompletionTimestamp(Aws::Utils::DateTime &&value)
void SetErrorMessage(const Aws::String &value)
ExportStatus & WithState(const ExportState &value)
void SetSubmissionTimestamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetSubmissionTimestamp() const
const Aws::String & GetErrorMessage() const
void SetErrorMessage(const char *value)
void SetCompletionTimestamp(const Aws::Utils::DateTime &value)
void SetSubmissionTimestamp(const Aws::Utils::DateTime &value)
const ExportState & GetState() const
ExportStatus & WithSubmissionTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue