AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
DefineIndexFieldRequest.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearchRequest.h>
8#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
9#include <aws/cloudsearch/model/IndexField.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudSearch {
16namespace Model {
17
26 public:
27 AWS_CLOUDSEARCH_API DefineIndexFieldRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DefineIndexField"; }
34
35 AWS_CLOUDSEARCH_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_CLOUDSEARCH_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
43 inline const Aws::String& GetDomainName() const { return m_domainName; }
44 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
45 template <typename DomainNameT = Aws::String>
46 void SetDomainName(DomainNameT&& value) {
47 m_domainNameHasBeenSet = true;
48 m_domainName = std::forward<DomainNameT>(value);
49 }
50 template <typename DomainNameT = Aws::String>
52 SetDomainName(std::forward<DomainNameT>(value));
53 return *this;
54 }
56
58
61 inline const IndexField& GetIndexField() const { return m_indexField; }
62 inline bool IndexFieldHasBeenSet() const { return m_indexFieldHasBeenSet; }
63 template <typename IndexFieldT = IndexField>
64 void SetIndexField(IndexFieldT&& value) {
65 m_indexFieldHasBeenSet = true;
66 m_indexField = std::forward<IndexFieldT>(value);
67 }
68 template <typename IndexFieldT = IndexField>
70 SetIndexField(std::forward<IndexFieldT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_domainName;
76
77 IndexField m_indexField;
78 bool m_domainNameHasBeenSet = false;
79 bool m_indexFieldHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace CloudSearch
84} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CLOUDSEARCH_API Aws::String SerializePayload() const override
DefineIndexFieldRequest & WithIndexField(IndexFieldT &&value)
DefineIndexFieldRequest & WithDomainName(DomainNameT &&value)
AWS_CLOUDSEARCH_API DefineIndexFieldRequest()=default
AWS_CLOUDSEARCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String