AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 DashboardErrorType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(DashboardErrorType value) { m_typeHasBeenSet = true; m_type = value; }
50 inline DashboardError& WithType(DashboardErrorType value) { SetType(value); return *this;}
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template<typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
61 template<typename MessageT = Aws::String>
62 DashboardError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Entity>& GetViolatedEntities() const { return m_violatedEntities; }
70 inline bool ViolatedEntitiesHasBeenSet() const { return m_violatedEntitiesHasBeenSet; }
71 template<typename ViolatedEntitiesT = Aws::Vector<Entity>>
72 void SetViolatedEntities(ViolatedEntitiesT&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities = std::forward<ViolatedEntitiesT>(value); }
73 template<typename ViolatedEntitiesT = Aws::Vector<Entity>>
74 DashboardError& WithViolatedEntities(ViolatedEntitiesT&& value) { SetViolatedEntities(std::forward<ViolatedEntitiesT>(value)); return *this;}
75 template<typename ViolatedEntitiesT = Entity>
76 DashboardError& AddViolatedEntities(ViolatedEntitiesT&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.emplace_back(std::forward<ViolatedEntitiesT>(value)); return *this; }
78 private:
79
81 bool m_typeHasBeenSet = false;
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85
86 Aws::Vector<Entity> m_violatedEntities;
87 bool m_violatedEntitiesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace QuickSight
92} // namespace Aws
DashboardError & WithType(DashboardErrorType value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessage() const
DashboardError & WithMessage(MessageT &&value)
DashboardErrorType GetType() const
const Aws::Vector< Entity > & GetViolatedEntities() const
DashboardError & WithViolatedEntities(ViolatedEntitiesT &&value)
void SetType(DashboardErrorType value)
AWS_QUICKSIGHT_API DashboardError()=default
DashboardError & AddViolatedEntities(ViolatedEntitiesT &&value)
AWS_QUICKSIGHT_API DashboardError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API DashboardError(Aws::Utils::Json::JsonView jsonValue)
void SetViolatedEntities(ViolatedEntitiesT &&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