AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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