AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDashboardRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/RefreshSchedule.h>
10#include <aws/cloudtrail/model/RequestWidget.h>
11#include <aws/cloudtrail/model/Tag.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudTrail {
19namespace Model {
20
24 public:
25 AWS_CLOUDTRAIL_API CreateDashboardRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateDashboard"; }
32
33 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
34
36
38
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
65 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
66 inline bool RefreshScheduleHasBeenSet() const { return m_refreshScheduleHasBeenSet; }
67 template <typename RefreshScheduleT = RefreshSchedule>
68 void SetRefreshSchedule(RefreshScheduleT&& value) {
69 m_refreshScheduleHasBeenSet = true;
70 m_refreshSchedule = std::forward<RefreshScheduleT>(value);
71 }
72 template <typename RefreshScheduleT = RefreshSchedule>
73 CreateDashboardRequest& WithRefreshSchedule(RefreshScheduleT&& value) {
74 SetRefreshSchedule(std::forward<RefreshScheduleT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::Vector<Tag>& GetTagsList() const { return m_tagsList; }
82 inline bool TagsListHasBeenSet() const { return m_tagsListHasBeenSet; }
83 template <typename TagsListT = Aws::Vector<Tag>>
84 void SetTagsList(TagsListT&& value) {
85 m_tagsListHasBeenSet = true;
86 m_tagsList = std::forward<TagsListT>(value);
87 }
88 template <typename TagsListT = Aws::Vector<Tag>>
90 SetTagsList(std::forward<TagsListT>(value));
91 return *this;
92 }
93 template <typename TagsListT = Tag>
94 CreateDashboardRequest& AddTagsList(TagsListT&& value) {
95 m_tagsListHasBeenSet = true;
96 m_tagsList.emplace_back(std::forward<TagsListT>(value));
97 return *this;
98 }
100
102
107 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
108 inline bool TerminationProtectionEnabledHasBeenSet() const { return m_terminationProtectionEnabledHasBeenSet; }
109 inline void SetTerminationProtectionEnabled(bool value) {
110 m_terminationProtectionEnabledHasBeenSet = true;
111 m_terminationProtectionEnabled = value;
112 }
115 return *this;
116 }
118
120
125 inline const Aws::Vector<RequestWidget>& GetWidgets() const { return m_widgets; }
126 inline bool WidgetsHasBeenSet() const { return m_widgetsHasBeenSet; }
127 template <typename WidgetsT = Aws::Vector<RequestWidget>>
128 void SetWidgets(WidgetsT&& value) {
129 m_widgetsHasBeenSet = true;
130 m_widgets = std::forward<WidgetsT>(value);
131 }
132 template <typename WidgetsT = Aws::Vector<RequestWidget>>
134 SetWidgets(std::forward<WidgetsT>(value));
135 return *this;
136 }
137 template <typename WidgetsT = RequestWidget>
139 m_widgetsHasBeenSet = true;
140 m_widgets.emplace_back(std::forward<WidgetsT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_name;
146
147 RefreshSchedule m_refreshSchedule;
148
149 Aws::Vector<Tag> m_tagsList;
150
151 bool m_terminationProtectionEnabled{false};
152
154 bool m_nameHasBeenSet = false;
155 bool m_refreshScheduleHasBeenSet = false;
156 bool m_tagsListHasBeenSet = false;
157 bool m_terminationProtectionEnabledHasBeenSet = false;
158 bool m_widgetsHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace CloudTrail
163} // namespace Aws
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDashboardRequest & WithTagsList(TagsListT &&value)
CreateDashboardRequest & WithName(NameT &&value)
CreateDashboardRequest & WithWidgets(WidgetsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
CreateDashboardRequest & AddWidgets(WidgetsT &&value)
const Aws::Vector< RequestWidget > & GetWidgets() const
CreateDashboardRequest & AddTagsList(TagsListT &&value)
CreateDashboardRequest & WithRefreshSchedule(RefreshScheduleT &&value)
AWS_CLOUDTRAIL_API CreateDashboardRequest()=default
CreateDashboardRequest & WithTerminationProtectionEnabled(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector