1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/quicksight/QuickSight_EXPORTS.h> 8 #include <aws/quicksight/model/IngestionErrorType.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace QuickSight 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>Error information for the SPICE ingestion of a dataset.</p><p><h3>See 29 * Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ErrorInfo">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_QUICKSIGHT_API ErrorInfo 34 { 35 public: 36 ErrorInfo(); 37 ErrorInfo(Aws::Utils::Json::JsonView jsonValue); 38 ErrorInfo& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>Error type.</p> 44 */ GetType()45 inline const IngestionErrorType& GetType() const{ return m_type; } 46 47 /** 48 * <p>Error type.</p> 49 */ TypeHasBeenSet()50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } 51 52 /** 53 * <p>Error type.</p> 54 */ SetType(const IngestionErrorType & value)55 inline void SetType(const IngestionErrorType& value) { m_typeHasBeenSet = true; m_type = value; } 56 57 /** 58 * <p>Error type.</p> 59 */ SetType(IngestionErrorType && value)60 inline void SetType(IngestionErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } 61 62 /** 63 * <p>Error type.</p> 64 */ WithType(const IngestionErrorType & value)65 inline ErrorInfo& WithType(const IngestionErrorType& value) { SetType(value); return *this;} 66 67 /** 68 * <p>Error type.</p> 69 */ WithType(IngestionErrorType && value)70 inline ErrorInfo& WithType(IngestionErrorType&& value) { SetType(std::move(value)); return *this;} 71 72 73 /** 74 * <p>Error message.</p> 75 */ GetMessage()76 inline const Aws::String& GetMessage() const{ return m_message; } 77 78 /** 79 * <p>Error message.</p> 80 */ MessageHasBeenSet()81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 82 83 /** 84 * <p>Error message.</p> 85 */ SetMessage(const Aws::String & value)86 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 87 88 /** 89 * <p>Error message.</p> 90 */ SetMessage(Aws::String && value)91 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 92 93 /** 94 * <p>Error message.</p> 95 */ SetMessage(const char * value)96 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 97 98 /** 99 * <p>Error message.</p> 100 */ WithMessage(const Aws::String & value)101 inline ErrorInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 102 103 /** 104 * <p>Error message.</p> 105 */ WithMessage(Aws::String && value)106 inline ErrorInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 107 108 /** 109 * <p>Error message.</p> 110 */ WithMessage(const char * value)111 inline ErrorInfo& WithMessage(const char* value) { SetMessage(value); return *this;} 112 113 private: 114 115 IngestionErrorType m_type; 116 bool m_typeHasBeenSet; 117 118 Aws::String m_message; 119 bool m_messageHasBeenSet; 120 }; 121 122 } // namespace Model 123 } // namespace QuickSight 124 } // namespace Aws 125