AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DashboardError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/DashboardErrorType.h>
11#include <aws/quicksight/model/Entity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
31 public:
32 AWS_QUICKSIGHT_API DashboardError() = default;
33 AWS_QUICKSIGHT_API DashboardError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API DashboardError& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline DashboardErrorType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(DashboardErrorType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
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) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 DashboardError& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Entity>& GetViolatedEntities() const { return m_violatedEntities; }
76 inline bool ViolatedEntitiesHasBeenSet() const { return m_violatedEntitiesHasBeenSet; }
77 template <typename ViolatedEntitiesT = Aws::Vector<Entity>>
78 void SetViolatedEntities(ViolatedEntitiesT&& value) {
79 m_violatedEntitiesHasBeenSet = true;
80 m_violatedEntities = std::forward<ViolatedEntitiesT>(value);
81 }
82 template <typename ViolatedEntitiesT = Aws::Vector<Entity>>
83 DashboardError& WithViolatedEntities(ViolatedEntitiesT&& value) {
84 SetViolatedEntities(std::forward<ViolatedEntitiesT>(value));
85 return *this;
86 }
87 template <typename ViolatedEntitiesT = Entity>
88 DashboardError& AddViolatedEntities(ViolatedEntitiesT&& value) {
89 m_violatedEntitiesHasBeenSet = true;
90 m_violatedEntities.emplace_back(std::forward<ViolatedEntitiesT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::String m_message;
98
99 Aws::Vector<Entity> m_violatedEntities;
100 bool m_typeHasBeenSet = false;
101 bool m_messageHasBeenSet = false;
102 bool m_violatedEntitiesHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace QuickSight
107} // 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