AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
UnprocessableEntityException.h
1
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
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MEDIALIVE_API UnprocessableEntityException() = default;
40 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessage() const { return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 template<typename MessageT = Aws::String>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
51 template<typename MessageT = Aws::String>
52 UnprocessableEntityException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
54
56
59 inline const Aws::Vector<ValidationError>& GetValidationErrors() const { return m_validationErrors; }
60 inline bool ValidationErrorsHasBeenSet() const { return m_validationErrorsHasBeenSet; }
61 template<typename ValidationErrorsT = Aws::Vector<ValidationError>>
62 void SetValidationErrors(ValidationErrorsT&& value) { m_validationErrorsHasBeenSet = true; m_validationErrors = std::forward<ValidationErrorsT>(value); }
63 template<typename ValidationErrorsT = Aws::Vector<ValidationError>>
64 UnprocessableEntityException& WithValidationErrors(ValidationErrorsT&& value) { SetValidationErrors(std::forward<ValidationErrorsT>(value)); return *this;}
65 template<typename ValidationErrorsT = ValidationError>
66 UnprocessableEntityException& AddValidationErrors(ValidationErrorsT&& value) { m_validationErrorsHasBeenSet = true; m_validationErrors.emplace_back(std::forward<ValidationErrorsT>(value)); return *this; }
68 private:
69
70 Aws::String m_message;
71 bool m_messageHasBeenSet = false;
72
73 Aws::Vector<ValidationError> m_validationErrors;
74 bool m_validationErrorsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace MediaLive
79} // namespace Aws
AWS_MEDIALIVE_API UnprocessableEntityException & operator=(Aws::Utils::Json::JsonView jsonValue)
UnprocessableEntityException & WithMessage(MessageT &&value)
const Aws::Vector< ValidationError > & GetValidationErrors() const
AWS_MEDIALIVE_API UnprocessableEntityException()=default
UnprocessableEntityException & WithValidationErrors(ValidationErrorsT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
UnprocessableEntityException & AddValidationErrors(ValidationErrorsT &&value)
AWS_MEDIALIVE_API UnprocessableEntityException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue