AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListFieldOptionsRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/ConnectCasesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace ConnectCases
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECTCASES_API ListFieldOptionsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListFieldOptions"; }
36
37 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
38
39 AWS_CONNECTCASES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetDomainId() const { return m_domainId; }
47 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
48 template<typename DomainIdT = Aws::String>
49 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
50 template<typename DomainIdT = Aws::String>
51 ListFieldOptionsRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetFieldId() const { return m_fieldId; }
59 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
60 template<typename FieldIdT = Aws::String>
61 void SetFieldId(FieldIdT&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::forward<FieldIdT>(value); }
62 template<typename FieldIdT = Aws::String>
63 ListFieldOptionsRequest& WithFieldId(FieldIdT&& value) { SetFieldId(std::forward<FieldIdT>(value)); return *this;}
65
67
70 inline int GetMaxResults() const { return m_maxResults; }
71 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
72 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
73 inline ListFieldOptionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
75
77
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template<typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
85 template<typename NextTokenT = Aws::String>
86 ListFieldOptionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
88
90
94 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
95 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
96 template<typename ValuesT = Aws::Vector<Aws::String>>
97 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
98 template<typename ValuesT = Aws::Vector<Aws::String>>
99 ListFieldOptionsRequest& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
100 template<typename ValuesT = Aws::String>
101 ListFieldOptionsRequest& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
103 private:
104
105 Aws::String m_domainId;
106 bool m_domainIdHasBeenSet = false;
107
108 Aws::String m_fieldId;
109 bool m_fieldIdHasBeenSet = false;
110
111 int m_maxResults{0};
112 bool m_maxResultsHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
118 bool m_valuesHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ConnectCases
123} // namespace Aws
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
ListFieldOptionsRequest & WithFieldId(FieldIdT &&value)
const Aws::Vector< Aws::String > & GetValues() const
ListFieldOptionsRequest & WithMaxResults(int value)
AWS_CONNECTCASES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListFieldOptionsRequest & WithValues(ValuesT &&value)
ListFieldOptionsRequest & AddValues(ValuesT &&value)
ListFieldOptionsRequest & WithNextToken(NextTokenT &&value)
AWS_CONNECTCASES_API ListFieldOptionsRequest()=default
virtual const char * GetServiceRequestName() const override
ListFieldOptionsRequest & WithDomainId(DomainIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector