AWS SDK for C++  0.12.9
AWS SDK for C++
DefineIndexFieldRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace CloudSearch
24 {
25 namespace Model
26 {
27 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39 
40  inline const Aws::String& GetDomainName() const{ return m_domainName; }
41 
42 
43  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
44 
45 
46  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
47 
48 
49  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
50 
51 
52  inline DefineIndexFieldRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
53 
54 
55  inline DefineIndexFieldRequest& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
56 
57 
58  inline DefineIndexFieldRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
59 
63  inline const IndexField& GetIndexField() const{ return m_indexField; }
64 
68  inline void SetIndexField(const IndexField& value) { m_indexFieldHasBeenSet = true; m_indexField = value; }
69 
73  inline void SetIndexField(IndexField&& value) { m_indexFieldHasBeenSet = true; m_indexField = value; }
74 
78  inline DefineIndexFieldRequest& WithIndexField(const IndexField& value) { SetIndexField(value); return *this;}
79 
83  inline DefineIndexFieldRequest& WithIndexField(IndexField&& value) { SetIndexField(value); return *this;}
84 
85  private:
86  Aws::String m_domainName;
87  bool m_domainNameHasBeenSet;
88  IndexField m_indexField;
89  bool m_indexFieldHasBeenSet;
90  };
91 
92 } // namespace Model
93 } // namespace CloudSearch
94 } // namespace Aws
DefineIndexFieldRequest & WithDomainName(const char *value)
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)
JSON (JavaScript Object Notation).