AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ListDashboardsRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/DashboardType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudTrail {
16namespace Model {
17
21 public:
22 AWS_CLOUDTRAIL_API ListDashboardsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListDashboards"; }
29
30 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
39 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
40 template <typename NamePrefixT = Aws::String>
41 void SetNamePrefix(NamePrefixT&& value) {
42 m_namePrefixHasBeenSet = true;
43 m_namePrefix = std::forward<NamePrefixT>(value);
44 }
45 template <typename NamePrefixT = Aws::String>
46 ListDashboardsRequest& WithNamePrefix(NamePrefixT&& value) {
47 SetNamePrefix(std::forward<NamePrefixT>(value));
48 return *this;
49 }
51
53
57 inline DashboardType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(DashboardType value) {
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetNextToken() const { return m_nextToken; }
74 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
75 template <typename NextTokenT = Aws::String>
76 void SetNextToken(NextTokenT&& value) {
77 m_nextTokenHasBeenSet = true;
78 m_nextToken = std::forward<NextTokenT>(value);
79 }
80 template <typename NextTokenT = Aws::String>
81 ListDashboardsRequest& WithNextToken(NextTokenT&& value) {
82 SetNextToken(std::forward<NextTokenT>(value));
83 return *this;
84 }
86
88
91 inline int GetMaxResults() const { return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) {
94 m_maxResultsHasBeenSet = true;
95 m_maxResults = value;
96 }
98 SetMaxResults(value);
99 return *this;
100 }
102 private:
103 Aws::String m_namePrefix;
104
106
107 Aws::String m_nextToken;
108
109 int m_maxResults{0};
110 bool m_namePrefixHasBeenSet = false;
111 bool m_typeHasBeenSet = false;
112 bool m_nextTokenHasBeenSet = false;
113 bool m_maxResultsHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace CloudTrail
118} // namespace Aws
ListDashboardsRequest & WithNextToken(NextTokenT &&value)
ListDashboardsRequest & WithNamePrefix(NamePrefixT &&value)
virtual const char * GetServiceRequestName() const override
ListDashboardsRequest & WithType(DashboardType value)
ListDashboardsRequest & WithMaxResults(int value)
AWS_CLOUDTRAIL_API ListDashboardsRequest()=default
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String