AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TemplateError.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/TemplateErrorType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/quicksight/model/Entity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QUICKSIGHT_API TemplateError();
39 AWS_QUICKSIGHT_API TemplateError(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API TemplateError& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const TemplateErrorType& GetType() const{ return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(const TemplateErrorType& value) { m_typeHasBeenSet = true; m_type = value; }
51 inline void SetType(TemplateErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
52 inline TemplateError& WithType(const TemplateErrorType& value) { SetType(value); return *this;}
53 inline TemplateError& WithType(TemplateErrorType&& value) { SetType(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetMessage() const{ return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
63 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
64 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
65 inline TemplateError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
66 inline TemplateError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
67 inline TemplateError& WithMessage(const char* value) { SetMessage(value); return *this;}
69
71
74 inline const Aws::Vector<Entity>& GetViolatedEntities() const{ return m_violatedEntities; }
75 inline bool ViolatedEntitiesHasBeenSet() const { return m_violatedEntitiesHasBeenSet; }
76 inline void SetViolatedEntities(const Aws::Vector<Entity>& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities = value; }
77 inline void SetViolatedEntities(Aws::Vector<Entity>&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities = std::move(value); }
78 inline TemplateError& WithViolatedEntities(const Aws::Vector<Entity>& value) { SetViolatedEntities(value); return *this;}
79 inline TemplateError& WithViolatedEntities(Aws::Vector<Entity>&& value) { SetViolatedEntities(std::move(value)); return *this;}
80 inline TemplateError& AddViolatedEntities(const Entity& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(value); return *this; }
81 inline TemplateError& AddViolatedEntities(Entity&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(std::move(value)); return *this; }
83 private:
84
85 TemplateErrorType m_type;
86 bool m_typeHasBeenSet = false;
87
88 Aws::String m_message;
89 bool m_messageHasBeenSet = false;
90
91 Aws::Vector<Entity> m_violatedEntities;
92 bool m_violatedEntitiesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace QuickSight
97} // namespace Aws
void SetMessage(const char *value)
TemplateError & WithType(const TemplateErrorType &value)
const TemplateErrorType & GetType() const
const Aws::Vector< Entity > & GetViolatedEntities() const
TemplateError & AddViolatedEntities(const Entity &value)
void SetType(const TemplateErrorType &value)
AWS_QUICKSIGHT_API TemplateError(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(const Aws::String &value)
void SetType(TemplateErrorType &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TemplateError & WithViolatedEntities(const Aws::Vector< Entity > &value)
void SetViolatedEntities(Aws::Vector< Entity > &&value)
TemplateError & WithMessage(Aws::String &&value)
TemplateError & WithMessage(const char *value)
TemplateError & WithMessage(const Aws::String &value)
void SetViolatedEntities(const Aws::Vector< Entity > &value)
TemplateError & WithType(TemplateErrorType &&value)
TemplateError & AddViolatedEntities(Entity &&value)
const Aws::String & GetMessage() const
AWS_QUICKSIGHT_API TemplateError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(Aws::String &&value)
TemplateError & WithViolatedEntities(Aws::Vector< Entity > &&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