AWS SDK for C++  1.8.71
AWS SDK for C++
DefineIndexFieldRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudSearch
16 {
17 namespace Model
18 {
19 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DefineIndexField"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
45 
46  inline const Aws::String& GetDomainName() const{ return m_domainName; }
47 
48 
49  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
50 
51 
52  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
53 
54 
55  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
56 
57 
58  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
59 
60 
61  inline DefineIndexFieldRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
62 
63 
64  inline DefineIndexFieldRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
65 
66 
67  inline DefineIndexFieldRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
68 
69 
73  inline const IndexField& GetIndexField() const{ return m_indexField; }
74 
78  inline bool IndexFieldHasBeenSet() const { return m_indexFieldHasBeenSet; }
79 
83  inline void SetIndexField(const IndexField& value) { m_indexFieldHasBeenSet = true; m_indexField = value; }
84 
88  inline void SetIndexField(IndexField&& value) { m_indexFieldHasBeenSet = true; m_indexField = std::move(value); }
89 
93  inline DefineIndexFieldRequest& WithIndexField(const IndexField& value) { SetIndexField(value); return *this;}
94 
98  inline DefineIndexFieldRequest& WithIndexField(IndexField&& value) { SetIndexField(std::move(value)); return *this;}
99 
100  private:
101 
102  Aws::String m_domainName;
103  bool m_domainNameHasBeenSet;
104 
105  IndexField m_indexField;
106  bool m_indexFieldHasBeenSet;
107  };
108 
109 } // namespace Model
110 } // namespace CloudSearch
111 } // namespace Aws
DefineIndexFieldRequest & WithDomainName(const char *value)
virtual const char * GetServiceRequestName() const override
DefineIndexFieldRequest & WithIndexField(const IndexField &value)
DefineIndexFieldRequest & WithDomainName(const Aws::String &value)
DefineIndexFieldRequest & WithIndexField(IndexField &&value)
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DefineIndexFieldRequest & WithDomainName(Aws::String &&value)