AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeSuggestersRequest.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 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
44  inline const Aws::String& GetDomainName() const{ return m_domainName; }
45 
49  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
50 
54  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
55 
59  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
60 
64  inline DescribeSuggestersRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
65 
69  inline DescribeSuggestersRequest& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
70 
74  inline DescribeSuggestersRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
75 
79  inline const Aws::Vector<Aws::String>& GetSuggesterNames() const{ return m_suggesterNames; }
80 
84  inline void SetSuggesterNames(const Aws::Vector<Aws::String>& value) { m_suggesterNamesHasBeenSet = true; m_suggesterNames = value; }
85 
89  inline void SetSuggesterNames(Aws::Vector<Aws::String>&& value) { m_suggesterNamesHasBeenSet = true; m_suggesterNames = value; }
90 
94  inline DescribeSuggestersRequest& WithSuggesterNames(const Aws::Vector<Aws::String>& value) { SetSuggesterNames(value); return *this;}
95 
99  inline DescribeSuggestersRequest& WithSuggesterNames(Aws::Vector<Aws::String>&& value) { SetSuggesterNames(value); return *this;}
100 
104  inline DescribeSuggestersRequest& AddSuggesterNames(const Aws::String& value) { m_suggesterNamesHasBeenSet = true; m_suggesterNames.push_back(value); return *this; }
105 
109  inline DescribeSuggestersRequest& AddSuggesterNames(Aws::String&& value) { m_suggesterNamesHasBeenSet = true; m_suggesterNames.push_back(value); return *this; }
110 
114  inline DescribeSuggestersRequest& AddSuggesterNames(const char* value) { m_suggesterNamesHasBeenSet = true; m_suggesterNames.push_back(value); return *this; }
115 
120  inline bool GetDeployed() const{ return m_deployed; }
121 
126  inline void SetDeployed(bool value) { m_deployedHasBeenSet = true; m_deployed = value; }
127 
132  inline DescribeSuggestersRequest& WithDeployed(bool value) { SetDeployed(value); return *this;}
133 
134  private:
135  Aws::String m_domainName;
136  bool m_domainNameHasBeenSet;
137  Aws::Vector<Aws::String> m_suggesterNames;
138  bool m_suggesterNamesHasBeenSet;
139  bool m_deployed;
140  bool m_deployedHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace CloudSearch
145 } // namespace Aws
DescribeSuggestersRequest & WithDeployed(bool value)
DescribeSuggestersRequest & WithSuggesterNames(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeSuggestersRequest & WithDomainName(Aws::String &&value)
DescribeSuggestersRequest & WithDomainName(const char *value)
void SetSuggesterNames(const Aws::Vector< Aws::String > &value)
void SetSuggesterNames(Aws::Vector< Aws::String > &&value)
DescribeSuggestersRequest & WithDomainName(const Aws::String &value)
DescribeSuggestersRequest & AddSuggesterNames(const char *value)
const Aws::Vector< Aws::String > & GetSuggesterNames() const
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeSuggestersRequest & AddSuggesterNames(Aws::String &&value)
DescribeSuggestersRequest & WithSuggesterNames(const Aws::Vector< Aws::String > &value)
DescribeSuggestersRequest & AddSuggesterNames(const Aws::String &value)
JSON (JavaScript Object Notation).