AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ImportBatch.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/ImportStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
29 public:
30 AWS_CLOUDWATCHLOGS_API ImportBatch() = default;
31 AWS_CLOUDWATCHLOGS_API ImportBatch(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API ImportBatch& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBatchId() const { return m_batchId; }
40 inline bool BatchIdHasBeenSet() const { return m_batchIdHasBeenSet; }
41 template <typename BatchIdT = Aws::String>
42 void SetBatchId(BatchIdT&& value) {
43 m_batchIdHasBeenSet = true;
44 m_batchId = std::forward<BatchIdT>(value);
45 }
46 template <typename BatchIdT = Aws::String>
47 ImportBatch& WithBatchId(BatchIdT&& value) {
48 SetBatchId(std::forward<BatchIdT>(value));
49 return *this;
50 }
52
54
58 inline ImportStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(ImportStatus value) {
61 m_statusHasBeenSet = true;
62 m_status = value;
63 }
65 SetStatus(value);
66 return *this;
67 }
69
71
75 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
76 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
77 template <typename ErrorMessageT = Aws::String>
78 void SetErrorMessage(ErrorMessageT&& value) {
79 m_errorMessageHasBeenSet = true;
80 m_errorMessage = std::forward<ErrorMessageT>(value);
81 }
82 template <typename ErrorMessageT = Aws::String>
83 ImportBatch& WithErrorMessage(ErrorMessageT&& value) {
84 SetErrorMessage(std::forward<ErrorMessageT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_batchId;
90
92
93 Aws::String m_errorMessage;
94 bool m_batchIdHasBeenSet = false;
95 bool m_statusHasBeenSet = false;
96 bool m_errorMessageHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchLogs
101} // namespace Aws
const Aws::String & GetErrorMessage() const
Definition ImportBatch.h:75
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API ImportBatch & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ImportStatus value)
Definition ImportBatch.h:60
ImportBatch & WithStatus(ImportStatus value)
Definition ImportBatch.h:64
ImportBatch & WithBatchId(BatchIdT &&value)
Definition ImportBatch.h:47
ImportBatch & WithErrorMessage(ErrorMessageT &&value)
Definition ImportBatch.h:83
AWS_CLOUDWATCHLOGS_API ImportBatch(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API ImportBatch()=default
void SetErrorMessage(ErrorMessageT &&value)
Definition ImportBatch.h:78
const Aws::String & GetBatchId() const
Definition ImportBatch.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue