AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline UnprocessableEntityException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline UnprocessableEntityException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline UnprocessableEntityException& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
61 inline const Aws::Vector<ValidationError>& GetValidationErrors() const{ return m_validationErrors; }
62 inline bool ValidationErrorsHasBeenSet() const { return m_validationErrorsHasBeenSet; }
63 inline void SetValidationErrors(const Aws::Vector<ValidationError>& value) { m_validationErrorsHasBeenSet = true; m_validationErrors = value; }
64 inline void SetValidationErrors(Aws::Vector<ValidationError>&& value) { m_validationErrorsHasBeenSet = true; m_validationErrors = std::move(value); }
67 inline UnprocessableEntityException& AddValidationErrors(const ValidationError& value) { m_validationErrorsHasBeenSet = true; m_validationErrors.push_back(value); return *this; }
68 inline UnprocessableEntityException& AddValidationErrors(ValidationError&& value) { m_validationErrorsHasBeenSet = true; m_validationErrors.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74
75 Aws::Vector<ValidationError> m_validationErrors;
76 bool m_validationErrorsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace MediaLive
81} // namespace Aws
UnprocessableEntityException & WithValidationErrors(const Aws::Vector< ValidationError > &value)
UnprocessableEntityException & WithValidationErrors(Aws::Vector< ValidationError > &&value)
AWS_MEDIALIVE_API UnprocessableEntityException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ValidationError > & GetValidationErrors() const
void SetValidationErrors(const Aws::Vector< ValidationError > &value)
UnprocessableEntityException & WithMessage(const char *value)
UnprocessableEntityException & WithMessage(Aws::String &&value)
UnprocessableEntityException & WithMessage(const Aws::String &value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API UnprocessableEntityException(Aws::Utils::Json::JsonView jsonValue)
void SetValidationErrors(Aws::Vector< ValidationError > &&value)
UnprocessableEntityException & AddValidationErrors(const ValidationError &value)
UnprocessableEntityException & AddValidationErrors(ValidationError &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue