AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DashboardError.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/DashboardErrorType.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
35 {
36 public:
37 AWS_QUICKSIGHT_API DashboardError();
38 AWS_QUICKSIGHT_API DashboardError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API DashboardError& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const DashboardErrorType& GetType() const{ return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(const DashboardErrorType& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(DashboardErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline DashboardError& WithType(const DashboardErrorType& value) { SetType(value); return *this;}
52 inline DashboardError& WithType(DashboardErrorType&& value) { SetType(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetMessage() const{ return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
62 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
63 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 inline DashboardError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
65 inline DashboardError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
66 inline DashboardError& WithMessage(const char* value) { SetMessage(value); return *this;}
68
70
73 inline const Aws::Vector<Entity>& GetViolatedEntities() const{ return m_violatedEntities; }
74 inline bool ViolatedEntitiesHasBeenSet() const { return m_violatedEntitiesHasBeenSet; }
75 inline void SetViolatedEntities(const Aws::Vector<Entity>& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities = value; }
76 inline void SetViolatedEntities(Aws::Vector<Entity>&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities = std::move(value); }
77 inline DashboardError& WithViolatedEntities(const Aws::Vector<Entity>& value) { SetViolatedEntities(value); return *this;}
78 inline DashboardError& WithViolatedEntities(Aws::Vector<Entity>&& value) { SetViolatedEntities(std::move(value)); return *this;}
79 inline DashboardError& AddViolatedEntities(const Entity& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(value); return *this; }
80 inline DashboardError& AddViolatedEntities(Entity&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(std::move(value)); return *this; }
82 private:
83
84 DashboardErrorType m_type;
85 bool m_typeHasBeenSet = false;
86
87 Aws::String m_message;
88 bool m_messageHasBeenSet = false;
89
90 Aws::Vector<Entity> m_violatedEntities;
91 bool m_violatedEntitiesHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace QuickSight
96} // namespace Aws
DashboardError & WithType(DashboardErrorType &&value)
DashboardError & WithMessage(const Aws::String &value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessage() const
void SetViolatedEntities(Aws::Vector< Entity > &&value)
void SetType(const DashboardErrorType &value)
DashboardError & WithViolatedEntities(const Aws::Vector< Entity > &value)
const Aws::Vector< Entity > & GetViolatedEntities() const
DashboardError & AddViolatedEntities(const Entity &value)
DashboardError & WithMessage(const char *value)
DashboardError & WithMessage(Aws::String &&value)
DashboardError & WithViolatedEntities(Aws::Vector< Entity > &&value)
const DashboardErrorType & GetType() const
void SetMessage(const Aws::String &value)
DashboardError & AddViolatedEntities(Entity &&value)
AWS_QUICKSIGHT_API DashboardError & operator=(Aws::Utils::Json::JsonView jsonValue)
DashboardError & WithType(const DashboardErrorType &value)
AWS_QUICKSIGHT_API DashboardError(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(Aws::String &&value)
void SetViolatedEntities(const Aws::Vector< Entity > &value)
void SetType(DashboardErrorType &&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