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/medialive/MediaLive_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <aws/medialive/model/ValidationError.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Utils 16 { 17 namespace Json 18 { 19 class JsonValue; 20 class JsonView; 21 } // namespace Json 22 } // namespace Utils 23 namespace MediaLive 24 { 25 namespace Model 26 { 27 28 /** 29 * Placeholder documentation for UnprocessableEntityException<p><h3>See Also:</h3> 30 * <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/UnprocessableEntityException">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_MEDIALIVE_API UnprocessableEntityException 35 { 36 public: 37 UnprocessableEntityException(); 38 UnprocessableEntityException(Aws::Utils::Json::JsonView jsonValue); 39 UnprocessableEntityException& operator=(Aws::Utils::Json::JsonView jsonValue); 40 Aws::Utils::Json::JsonValue Jsonize() const; 41 42 43 /** 44 * The error message. 45 */ GetMessage()46 inline const Aws::String& GetMessage() const{ return m_message; } 47 48 /** 49 * The error message. 50 */ MessageHasBeenSet()51 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 52 53 /** 54 * The error message. 55 */ SetMessage(const Aws::String & value)56 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 57 58 /** 59 * The error message. 60 */ SetMessage(Aws::String && value)61 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 62 63 /** 64 * The error message. 65 */ SetMessage(const char * value)66 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 67 68 /** 69 * The error message. 70 */ WithMessage(const Aws::String & value)71 inline UnprocessableEntityException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 72 73 /** 74 * The error message. 75 */ WithMessage(Aws::String && value)76 inline UnprocessableEntityException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 77 78 /** 79 * The error message. 80 */ WithMessage(const char * value)81 inline UnprocessableEntityException& WithMessage(const char* value) { SetMessage(value); return *this;} 82 83 84 /** 85 * A collection of validation error responses. 86 */ GetValidationErrors()87 inline const Aws::Vector<ValidationError>& GetValidationErrors() const{ return m_validationErrors; } 88 89 /** 90 * A collection of validation error responses. 91 */ ValidationErrorsHasBeenSet()92 inline bool ValidationErrorsHasBeenSet() const { return m_validationErrorsHasBeenSet; } 93 94 /** 95 * A collection of validation error responses. 96 */ SetValidationErrors(const Aws::Vector<ValidationError> & value)97 inline void SetValidationErrors(const Aws::Vector<ValidationError>& value) { m_validationErrorsHasBeenSet = true; m_validationErrors = value; } 98 99 /** 100 * A collection of validation error responses. 101 */ SetValidationErrors(Aws::Vector<ValidationError> && value)102 inline void SetValidationErrors(Aws::Vector<ValidationError>&& value) { m_validationErrorsHasBeenSet = true; m_validationErrors = std::move(value); } 103 104 /** 105 * A collection of validation error responses. 106 */ WithValidationErrors(const Aws::Vector<ValidationError> & value)107 inline UnprocessableEntityException& WithValidationErrors(const Aws::Vector<ValidationError>& value) { SetValidationErrors(value); return *this;} 108 109 /** 110 * A collection of validation error responses. 111 */ WithValidationErrors(Aws::Vector<ValidationError> && value)112 inline UnprocessableEntityException& WithValidationErrors(Aws::Vector<ValidationError>&& value) { SetValidationErrors(std::move(value)); return *this;} 113 114 /** 115 * A collection of validation error responses. 116 */ AddValidationErrors(const ValidationError & value)117 inline UnprocessableEntityException& AddValidationErrors(const ValidationError& value) { m_validationErrorsHasBeenSet = true; m_validationErrors.push_back(value); return *this; } 118 119 /** 120 * A collection of validation error responses. 121 */ AddValidationErrors(ValidationError && value)122 inline UnprocessableEntityException& AddValidationErrors(ValidationError&& value) { m_validationErrorsHasBeenSet = true; m_validationErrors.push_back(std::move(value)); return *this; } 123 124 private: 125 126 Aws::String m_message; 127 bool m_messageHasBeenSet; 128 129 Aws::Vector<ValidationError> m_validationErrors; 130 bool m_validationErrorsHasBeenSet; 131 }; 132 133 } // namespace Model 134 } // namespace MediaLive 135 } // namespace Aws 136