AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackagev2/model/ValidationExceptionType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace mediapackagev2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MEDIAPACKAGEV2_API ValidationException();
37 AWS_MEDIAPACKAGEV2_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIAPACKAGEV2_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetMessage() const{ return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
47 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
48 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
49 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
50 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
51 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
53
55
58 inline const ValidationExceptionType& GetValidationExceptionType() const{ return m_validationExceptionType; }
59 inline bool ValidationExceptionTypeHasBeenSet() const { return m_validationExceptionTypeHasBeenSet; }
60 inline void SetValidationExceptionType(const ValidationExceptionType& value) { m_validationExceptionTypeHasBeenSet = true; m_validationExceptionType = value; }
61 inline void SetValidationExceptionType(ValidationExceptionType&& value) { m_validationExceptionTypeHasBeenSet = true; m_validationExceptionType = std::move(value); }
65 private:
66
67 Aws::String m_message;
68 bool m_messageHasBeenSet = false;
69
70 ValidationExceptionType m_validationExceptionType;
71 bool m_validationExceptionTypeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace mediapackagev2
76} // namespace Aws
ValidationException & WithMessage(Aws::String &&value)
ValidationException & WithValidationExceptionType(const ValidationExceptionType &value)
ValidationException & WithValidationExceptionType(ValidationExceptionType &&value)
AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithMessage(const Aws::String &value)
AWS_MEDIAPACKAGEV2_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIAPACKAGEV2_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const char *value)
const ValidationExceptionType & GetValidationExceptionType() const
void SetValidationExceptionType(ValidationExceptionType &&value)
void SetValidationExceptionType(const ValidationExceptionType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue