AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchStatus.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/SearchState.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 SearchStatus();
37 AWS_MAILMANAGER_API SearchStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API SearchStatus& 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 SearchStatus& 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 SearchStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
64 inline SearchStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
65 inline SearchStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
67
69
72 inline const SearchState& GetState() const{ return m_state; }
73 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 inline void SetState(const SearchState& value) { m_stateHasBeenSet = true; m_state = value; }
75 inline void SetState(SearchState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
76 inline SearchStatus& WithState(const SearchState& value) { SetState(value); return *this;}
77 inline SearchStatus& WithState(SearchState&& 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 SearchStatus& 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 SearchState 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
SearchStatus & WithState(SearchState &&value)
SearchStatus & WithCompletionTimestamp(const Aws::Utils::DateTime &value)
SearchStatus & WithErrorMessage(const char *value)
SearchStatus & WithSubmissionTimestamp(Aws::Utils::DateTime &&value)
AWS_MAILMANAGER_API SearchStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetErrorMessage() const
SearchStatus & WithState(const SearchState &value)
SearchStatus & WithErrorMessage(const Aws::String &value)
AWS_MAILMANAGER_API SearchStatus(Aws::Utils::Json::JsonView jsonValue)
SearchStatus & WithErrorMessage(Aws::String &&value)
void SetCompletionTimestamp(const Aws::Utils::DateTime &value)
void SetErrorMessage(const char *value)
const SearchState & GetState() const
const Aws::Utils::DateTime & GetCompletionTimestamp() const
AWS_MAILMANAGER_API SearchStatus()
void SetState(const SearchState &value)
void SetCompletionTimestamp(Aws::Utils::DateTime &&value)
void SetSubmissionTimestamp(const Aws::Utils::DateTime &value)
void SetState(SearchState &&value)
SearchStatus & WithCompletionTimestamp(Aws::Utils::DateTime &&value)
SearchStatus & WithSubmissionTimestamp(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetSubmissionTimestamp() const
void SetErrorMessage(const Aws::String &value)
void SetSubmissionTimestamp(Aws::Utils::DateTime &&value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue