AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ValidationError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaLive {
20namespace Model {
21
28 public:
29 AWS_MEDIALIVE_API ValidationError() = default;
30 AWS_MEDIALIVE_API ValidationError(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetElementPath() const { return m_elementPath; }
39 inline bool ElementPathHasBeenSet() const { return m_elementPathHasBeenSet; }
40 template <typename ElementPathT = Aws::String>
41 void SetElementPath(ElementPathT&& value) {
42 m_elementPathHasBeenSet = true;
43 m_elementPath = std::forward<ElementPathT>(value);
44 }
45 template <typename ElementPathT = Aws::String>
46 ValidationError& WithElementPath(ElementPathT&& value) {
47 SetElementPath(std::forward<ElementPathT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
57 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
58 template <typename ErrorMessageT = Aws::String>
59 void SetErrorMessage(ErrorMessageT&& value) {
60 m_errorMessageHasBeenSet = true;
61 m_errorMessage = std::forward<ErrorMessageT>(value);
62 }
63 template <typename ErrorMessageT = Aws::String>
64 ValidationError& WithErrorMessage(ErrorMessageT&& value) {
65 SetErrorMessage(std::forward<ErrorMessageT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_elementPath;
71
72 Aws::String m_errorMessage;
73 bool m_elementPathHasBeenSet = false;
74 bool m_errorMessageHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace MediaLive
79} // namespace Aws
void SetErrorMessage(ErrorMessageT &&value)
ValidationError & WithElementPath(ElementPathT &&value)
ValidationError & WithErrorMessage(ErrorMessageT &&value)
const Aws::String & GetElementPath() const
AWS_MEDIALIVE_API ValidationError(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetErrorMessage() const
void SetElementPath(ElementPathT &&value)
AWS_MEDIALIVE_API ValidationError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API ValidationError()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue