AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchPutFieldOptionsRequest.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 <aws/connectcases/model/FieldOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConnectCases
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECTCASES_API BatchPutFieldOptionsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchPutFieldOptions"; }
33
34 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetDomainId() const { return m_domainId; }
42 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
43 template<typename DomainIdT = Aws::String>
44 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
45 template<typename DomainIdT = Aws::String>
46 BatchPutFieldOptionsRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetFieldId() const { return m_fieldId; }
54 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
55 template<typename FieldIdT = Aws::String>
56 void SetFieldId(FieldIdT&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::forward<FieldIdT>(value); }
57 template<typename FieldIdT = Aws::String>
58 BatchPutFieldOptionsRequest& WithFieldId(FieldIdT&& value) { SetFieldId(std::forward<FieldIdT>(value)); return *this;}
60
62
65 inline const Aws::Vector<FieldOption>& GetOptions() const { return m_options; }
66 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
67 template<typename OptionsT = Aws::Vector<FieldOption>>
68 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
69 template<typename OptionsT = Aws::Vector<FieldOption>>
70 BatchPutFieldOptionsRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
71 template<typename OptionsT = FieldOption>
72 BatchPutFieldOptionsRequest& AddOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options.emplace_back(std::forward<OptionsT>(value)); return *this; }
74 private:
75
76 Aws::String m_domainId;
77 bool m_domainIdHasBeenSet = false;
78
79 Aws::String m_fieldId;
80 bool m_fieldIdHasBeenSet = false;
81
83 bool m_optionsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace ConnectCases
88} // 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