AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
ListViewsRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/ViewType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Connect {
19namespace Model {
20
24 public:
25 AWS_CONNECT_API ListViewsRequest() = 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 "ListViews"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template <typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) {
46 m_instanceIdHasBeenSet = true;
47 m_instanceId = std::forward<InstanceIdT>(value);
48 }
49 template <typename InstanceIdT = Aws::String>
50 ListViewsRequest& WithInstanceId(InstanceIdT&& value) {
51 SetInstanceId(std::forward<InstanceIdT>(value));
52 return *this;
53 }
55
57
60 inline ViewType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(ViewType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 template <typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) {
81 m_nextTokenHasBeenSet = true;
82 m_nextToken = std::forward<NextTokenT>(value);
83 }
84 template <typename NextTokenT = Aws::String>
85 ListViewsRequest& WithNextToken(NextTokenT&& value) {
86 SetNextToken(std::forward<NextTokenT>(value));
87 return *this;
88 }
90
92
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) {
99 m_maxResultsHasBeenSet = true;
100 m_maxResults = value;
101 }
102 inline ListViewsRequest& WithMaxResults(int value) {
103 SetMaxResults(value);
104 return *this;
105 }
107 private:
108 Aws::String m_instanceId;
109 bool m_instanceIdHasBeenSet = false;
110
112 bool m_typeHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 int m_maxResults{0};
118 bool m_maxResultsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Connect
123} // namespace Aws
AWS_CONNECT_API ListViewsRequest()=default
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::String & GetNextToken() const
ListViewsRequest & WithType(ViewType value)
ListViewsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListViewsRequest & WithInstanceId(InstanceIdT &&value)
ListViewsRequest & WithMaxResults(int value)
const Aws::String & GetInstanceId() const
void SetInstanceId(InstanceIdT &&value)
void SetNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String