AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
BatchPutFieldOptionsRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/FieldOption.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 BatchPutFieldOptionsRequest() = 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 "BatchPutFieldOptions"; }
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>
46 SetDomainId(std::forward<DomainIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetFieldId() const { return m_fieldId; }
56 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
57 template <typename FieldIdT = Aws::String>
58 void SetFieldId(FieldIdT&& value) {
59 m_fieldIdHasBeenSet = true;
60 m_fieldId = std::forward<FieldIdT>(value);
61 }
62 template <typename FieldIdT = Aws::String>
64 SetFieldId(std::forward<FieldIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<FieldOption>& GetOptions() const { return m_options; }
74 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
75 template <typename OptionsT = Aws::Vector<FieldOption>>
76 void SetOptions(OptionsT&& value) {
77 m_optionsHasBeenSet = true;
78 m_options = std::forward<OptionsT>(value);
79 }
80 template <typename OptionsT = Aws::Vector<FieldOption>>
82 SetOptions(std::forward<OptionsT>(value));
83 return *this;
84 }
85 template <typename OptionsT = FieldOption>
87 m_optionsHasBeenSet = true;
88 m_options.emplace_back(std::forward<OptionsT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_domainId;
94
95 Aws::String m_fieldId;
96
98 bool m_domainIdHasBeenSet = false;
99 bool m_fieldIdHasBeenSet = false;
100 bool m_optionsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ConnectCases
105} // namespace Aws
AWS_CONNECTCASES_API BatchPutFieldOptionsRequest()=default
BatchPutFieldOptionsRequest & WithFieldId(FieldIdT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
BatchPutFieldOptionsRequest & WithOptions(OptionsT &&value)
BatchPutFieldOptionsRequest & AddOptions(OptionsT &&value)
BatchPutFieldOptionsRequest & WithDomainId(DomainIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector