1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/medialive/MediaLive_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace MediaLive
22 {
23 namespace Model
24 {
25 
26   /**
27    * Placeholder documentation for ValidationError<p><h3>See Also:</h3>   <a
28    * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ValidationError">AWS
29    * API Reference</a></p>
30    */
31   class AWS_MEDIALIVE_API ValidationError
32   {
33   public:
34     ValidationError();
35     ValidationError(Aws::Utils::Json::JsonView jsonValue);
36     ValidationError& operator=(Aws::Utils::Json::JsonView jsonValue);
37     Aws::Utils::Json::JsonValue Jsonize() const;
38 
39 
40     /**
41      * Path to the source of the error.
42      */
GetElementPath()43     inline const Aws::String& GetElementPath() const{ return m_elementPath; }
44 
45     /**
46      * Path to the source of the error.
47      */
ElementPathHasBeenSet()48     inline bool ElementPathHasBeenSet() const { return m_elementPathHasBeenSet; }
49 
50     /**
51      * Path to the source of the error.
52      */
SetElementPath(const Aws::String & value)53     inline void SetElementPath(const Aws::String& value) { m_elementPathHasBeenSet = true; m_elementPath = value; }
54 
55     /**
56      * Path to the source of the error.
57      */
SetElementPath(Aws::String && value)58     inline void SetElementPath(Aws::String&& value) { m_elementPathHasBeenSet = true; m_elementPath = std::move(value); }
59 
60     /**
61      * Path to the source of the error.
62      */
SetElementPath(const char * value)63     inline void SetElementPath(const char* value) { m_elementPathHasBeenSet = true; m_elementPath.assign(value); }
64 
65     /**
66      * Path to the source of the error.
67      */
WithElementPath(const Aws::String & value)68     inline ValidationError& WithElementPath(const Aws::String& value) { SetElementPath(value); return *this;}
69 
70     /**
71      * Path to the source of the error.
72      */
WithElementPath(Aws::String && value)73     inline ValidationError& WithElementPath(Aws::String&& value) { SetElementPath(std::move(value)); return *this;}
74 
75     /**
76      * Path to the source of the error.
77      */
WithElementPath(const char * value)78     inline ValidationError& WithElementPath(const char* value) { SetElementPath(value); return *this;}
79 
80 
81     /**
82      * The error message.
83      */
GetErrorMessage()84     inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
85 
86     /**
87      * The error message.
88      */
ErrorMessageHasBeenSet()89     inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
90 
91     /**
92      * The error message.
93      */
SetErrorMessage(const Aws::String & value)94     inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
95 
96     /**
97      * The error message.
98      */
SetErrorMessage(Aws::String && value)99     inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
100 
101     /**
102      * The error message.
103      */
SetErrorMessage(const char * value)104     inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
105 
106     /**
107      * The error message.
108      */
WithErrorMessage(const Aws::String & value)109     inline ValidationError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
110 
111     /**
112      * The error message.
113      */
WithErrorMessage(Aws::String && value)114     inline ValidationError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
115 
116     /**
117      * The error message.
118      */
WithErrorMessage(const char * value)119     inline ValidationError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
120 
121   private:
122 
123     Aws::String m_elementPath;
124     bool m_elementPathHasBeenSet;
125 
126     Aws::String m_errorMessage;
127     bool m_errorMessageHasBeenSet;
128   };
129 
130 } // namespace Model
131 } // namespace MediaLive
132 } // namespace Aws
133