AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateDashboardResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudtrail/model/DashboardType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/RefreshSchedule.h>
12#include <aws/cloudtrail/model/Widget.h>
13#include <aws/cloudtrail/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CloudTrail
29{
30namespace Model
31{
33 {
34 public:
35 AWS_CLOUDTRAIL_API CreateDashboardResult() = default;
38
39
41
44 inline const Aws::String& GetDashboardArn() const { return m_dashboardArn; }
45 template<typename DashboardArnT = Aws::String>
46 void SetDashboardArn(DashboardArnT&& value) { m_dashboardArnHasBeenSet = true; m_dashboardArn = std::forward<DashboardArnT>(value); }
47 template<typename DashboardArnT = Aws::String>
48 CreateDashboardResult& WithDashboardArn(DashboardArnT&& value) { SetDashboardArn(std::forward<DashboardArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 CreateDashboardResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline DashboardType GetType() const { return m_type; }
67 inline void SetType(DashboardType value) { m_typeHasBeenSet = true; m_type = value; }
68 inline CreateDashboardResult& WithType(DashboardType value) { SetType(value); return *this;}
70
72
75 inline const Aws::Vector<Widget>& GetWidgets() const { return m_widgets; }
76 template<typename WidgetsT = Aws::Vector<Widget>>
77 void SetWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets = std::forward<WidgetsT>(value); }
78 template<typename WidgetsT = Aws::Vector<Widget>>
79 CreateDashboardResult& WithWidgets(WidgetsT&& value) { SetWidgets(std::forward<WidgetsT>(value)); return *this;}
80 template<typename WidgetsT = Widget>
81 CreateDashboardResult& AddWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets.emplace_back(std::forward<WidgetsT>(value)); return *this; }
83
85
86 inline const Aws::Vector<Tag>& GetTagsList() const { return m_tagsList; }
87 template<typename TagsListT = Aws::Vector<Tag>>
88 void SetTagsList(TagsListT&& value) { m_tagsListHasBeenSet = true; m_tagsList = std::forward<TagsListT>(value); }
89 template<typename TagsListT = Aws::Vector<Tag>>
90 CreateDashboardResult& WithTagsList(TagsListT&& value) { SetTagsList(std::forward<TagsListT>(value)); return *this;}
91 template<typename TagsListT = Tag>
92 CreateDashboardResult& AddTagsList(TagsListT&& value) { m_tagsListHasBeenSet = true; m_tagsList.emplace_back(std::forward<TagsListT>(value)); return *this; }
94
96
99 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
100 template<typename RefreshScheduleT = RefreshSchedule>
101 void SetRefreshSchedule(RefreshScheduleT&& value) { m_refreshScheduleHasBeenSet = true; m_refreshSchedule = std::forward<RefreshScheduleT>(value); }
102 template<typename RefreshScheduleT = RefreshSchedule>
103 CreateDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) { SetRefreshSchedule(std::forward<RefreshScheduleT>(value)); return *this;}
105
107
110 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
111 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template<typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
120 template<typename RequestIdT = Aws::String>
121 CreateDashboardResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
123 private:
124
125 Aws::String m_dashboardArn;
126 bool m_dashboardArnHasBeenSet = false;
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
132 bool m_typeHasBeenSet = false;
133
134 Aws::Vector<Widget> m_widgets;
135 bool m_widgetsHasBeenSet = false;
136
137 Aws::Vector<Tag> m_tagsList;
138 bool m_tagsListHasBeenSet = false;
139
140 RefreshSchedule m_refreshSchedule;
141 bool m_refreshScheduleHasBeenSet = false;
142
143 bool m_terminationProtectionEnabled{false};
144 bool m_terminationProtectionEnabledHasBeenSet = false;
145
146 Aws::String m_requestId;
147 bool m_requestIdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace CloudTrail
152} // namespace Aws
CreateDashboardResult & WithType(DashboardType value)
CreateDashboardResult & WithRequestId(RequestIdT &&value)
CreateDashboardResult & WithTerminationProtectionEnabled(bool value)
CreateDashboardResult & WithName(NameT &&value)
const Aws::Vector< Widget > & GetWidgets() const
const RefreshSchedule & GetRefreshSchedule() const
CreateDashboardResult & WithRefreshSchedule(RefreshScheduleT &&value)
CreateDashboardResult & AddTagsList(TagsListT &&value)
CreateDashboardResult & WithWidgets(WidgetsT &&value)
AWS_CLOUDTRAIL_API CreateDashboardResult()=default
CreateDashboardResult & WithDashboardArn(DashboardArnT &&value)
CreateDashboardResult & AddWidgets(WidgetsT &&value)
CreateDashboardResult & WithTagsList(TagsListT &&value)
AWS_CLOUDTRAIL_API CreateDashboardResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Tag > & GetTagsList() const
AWS_CLOUDTRAIL_API CreateDashboardResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue