AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BatchGetFieldRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/FieldIdentifier.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConnectCases {
17namespace Model {
18
22 public:
23 AWS_CONNECTCASES_API BatchGetFieldRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchGetField"; }
30
31 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDomainId() const { return m_domainId; }
38 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
39 template <typename DomainIdT = Aws::String>
40 void SetDomainId(DomainIdT&& value) {
41 m_domainIdHasBeenSet = true;
42 m_domainId = std::forward<DomainIdT>(value);
43 }
44 template <typename DomainIdT = Aws::String>
45 BatchGetFieldRequest& WithDomainId(DomainIdT&& value) {
46 SetDomainId(std::forward<DomainIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<FieldIdentifier>& GetFields() const { return m_fields; }
56 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
57 template <typename FieldsT = Aws::Vector<FieldIdentifier>>
58 void SetFields(FieldsT&& value) {
59 m_fieldsHasBeenSet = true;
60 m_fields = std::forward<FieldsT>(value);
61 }
62 template <typename FieldsT = Aws::Vector<FieldIdentifier>>
63 BatchGetFieldRequest& WithFields(FieldsT&& value) {
64 SetFields(std::forward<FieldsT>(value));
65 return *this;
66 }
67 template <typename FieldsT = FieldIdentifier>
68 BatchGetFieldRequest& AddFields(FieldsT&& value) {
69 m_fieldsHasBeenSet = true;
70 m_fields.emplace_back(std::forward<FieldsT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_domainId;
76
78 bool m_domainIdHasBeenSet = false;
79 bool m_fieldsHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ConnectCases
84} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CONNECTCASES_API BatchGetFieldRequest()=default
BatchGetFieldRequest & AddFields(FieldsT &&value)
const Aws::Vector< FieldIdentifier > & GetFields() const
BatchGetFieldRequest & WithFields(FieldsT &&value)
BatchGetFieldRequest & WithDomainId(DomainIdT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector