AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UnprocessableEntityException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/ValidationError.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
31 public:
32 AWS_MEDIALIVE_API UnprocessableEntityException() = default;
35 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
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) {
63 m_validationErrorsHasBeenSet = true;
64 m_validationErrors = std::forward<ValidationErrorsT>(value);
65 }
66 template <typename ValidationErrorsT = Aws::Vector<ValidationError>>
68 SetValidationErrors(std::forward<ValidationErrorsT>(value));
69 return *this;
70 }
71 template <typename ValidationErrorsT = ValidationError>
73 m_validationErrorsHasBeenSet = true;
74 m_validationErrors.emplace_back(std::forward<ValidationErrorsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_message;
80
81 Aws::Vector<ValidationError> m_validationErrors;
82 bool m_messageHasBeenSet = false;
83 bool m_validationErrorsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace MediaLive
88} // 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