AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
SnapshotJobErrorInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QuickSight {
20namespace Model {
21
31 public:
32 AWS_QUICKSIGHT_API SnapshotJobErrorInfo() = default;
33 AWS_QUICKSIGHT_API SnapshotJobErrorInfo(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
42 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
43 template <typename ErrorMessageT = Aws::String>
44 void SetErrorMessage(ErrorMessageT&& value) {
45 m_errorMessageHasBeenSet = true;
46 m_errorMessage = std::forward<ErrorMessageT>(value);
47 }
48 template <typename ErrorMessageT = Aws::String>
49 SnapshotJobErrorInfo& WithErrorMessage(ErrorMessageT&& value) {
50 SetErrorMessage(std::forward<ErrorMessageT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetErrorType() const { return m_errorType; }
60 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
61 template <typename ErrorTypeT = Aws::String>
62 void SetErrorType(ErrorTypeT&& value) {
63 m_errorTypeHasBeenSet = true;
64 m_errorType = std::forward<ErrorTypeT>(value);
65 }
66 template <typename ErrorTypeT = Aws::String>
67 SnapshotJobErrorInfo& WithErrorType(ErrorTypeT&& value) {
68 SetErrorType(std::forward<ErrorTypeT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_errorMessage;
74
75 Aws::String m_errorType;
76 bool m_errorMessageHasBeenSet = false;
77 bool m_errorTypeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace QuickSight
82} // namespace Aws
SnapshotJobErrorInfo & WithErrorType(ErrorTypeT &&value)
AWS_QUICKSIGHT_API SnapshotJobErrorInfo()=default
SnapshotJobErrorInfo & WithErrorMessage(ErrorMessageT &&value)
AWS_QUICKSIGHT_API SnapshotJobErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API SnapshotJobErrorInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue