AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDashboardRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudtrail/model/RefreshSchedule.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cloudtrail/model/Tag.h>
13#include <aws/cloudtrail/model/RequestWidget.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudTrail
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDTRAIL_API CreateDashboardRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDashboard"; }
35
36 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
37
39
40
42
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateDashboardRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
63 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
64 inline bool RefreshScheduleHasBeenSet() const { return m_refreshScheduleHasBeenSet; }
65 template<typename RefreshScheduleT = RefreshSchedule>
66 void SetRefreshSchedule(RefreshScheduleT&& value) { m_refreshScheduleHasBeenSet = true; m_refreshSchedule = std::forward<RefreshScheduleT>(value); }
67 template<typename RefreshScheduleT = RefreshSchedule>
68 CreateDashboardRequest& WithRefreshSchedule(RefreshScheduleT&& value) { SetRefreshSchedule(std::forward<RefreshScheduleT>(value)); return *this;}
70
72
73 inline const Aws::Vector<Tag>& GetTagsList() const { return m_tagsList; }
74 inline bool TagsListHasBeenSet() const { return m_tagsListHasBeenSet; }
75 template<typename TagsListT = Aws::Vector<Tag>>
76 void SetTagsList(TagsListT&& value) { m_tagsListHasBeenSet = true; m_tagsList = std::forward<TagsListT>(value); }
77 template<typename TagsListT = Aws::Vector<Tag>>
78 CreateDashboardRequest& WithTagsList(TagsListT&& value) { SetTagsList(std::forward<TagsListT>(value)); return *this;}
79 template<typename TagsListT = Tag>
80 CreateDashboardRequest& AddTagsList(TagsListT&& value) { m_tagsListHasBeenSet = true; m_tagsList.emplace_back(std::forward<TagsListT>(value)); return *this; }
82
84
89 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
90 inline bool TerminationProtectionEnabledHasBeenSet() const { return m_terminationProtectionEnabledHasBeenSet; }
91 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
94
96
101 inline const Aws::Vector<RequestWidget>& GetWidgets() const { return m_widgets; }
102 inline bool WidgetsHasBeenSet() const { return m_widgetsHasBeenSet; }
103 template<typename WidgetsT = Aws::Vector<RequestWidget>>
104 void SetWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets = std::forward<WidgetsT>(value); }
105 template<typename WidgetsT = Aws::Vector<RequestWidget>>
106 CreateDashboardRequest& WithWidgets(WidgetsT&& value) { SetWidgets(std::forward<WidgetsT>(value)); return *this;}
107 template<typename WidgetsT = RequestWidget>
108 CreateDashboardRequest& AddWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets.emplace_back(std::forward<WidgetsT>(value)); return *this; }
110 private:
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 RefreshSchedule m_refreshSchedule;
116 bool m_refreshScheduleHasBeenSet = false;
117
118 Aws::Vector<Tag> m_tagsList;
119 bool m_tagsListHasBeenSet = false;
120
121 bool m_terminationProtectionEnabled{false};
122 bool m_terminationProtectionEnabledHasBeenSet = false;
123
125 bool m_widgetsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CloudTrail
130} // 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