AWS SDK for C++  0.14.3
AWS SDK for C++
GetAttributesRequest.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 SimpleDB
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetDomainName() const{ return m_domainName; }
40 
44  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
45 
49  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
50 
54  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
55 
59  inline GetAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
60 
64  inline GetAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
65 
69  inline GetAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
70 
74  inline const Aws::String& GetItemName() const{ return m_itemName; }
75 
79  inline void SetItemName(const Aws::String& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
80 
84  inline void SetItemName(Aws::String&& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
85 
89  inline void SetItemName(const char* value) { m_itemNameHasBeenSet = true; m_itemName.assign(value); }
90 
94  inline GetAttributesRequest& WithItemName(const Aws::String& value) { SetItemName(value); return *this;}
95 
99  inline GetAttributesRequest& WithItemName(Aws::String&& value) { SetItemName(value); return *this;}
100 
104  inline GetAttributesRequest& WithItemName(const char* value) { SetItemName(value); return *this;}
105 
109  inline const Aws::Vector<Aws::String>& GetAttributeNames() const{ return m_attributeNames; }
110 
114  inline void SetAttributeNames(const Aws::Vector<Aws::String>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
115 
119  inline void SetAttributeNames(Aws::Vector<Aws::String>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
120 
124  inline GetAttributesRequest& WithAttributeNames(const Aws::Vector<Aws::String>& value) { SetAttributeNames(value); return *this;}
125 
129  inline GetAttributesRequest& WithAttributeNames(Aws::Vector<Aws::String>&& value) { SetAttributeNames(value); return *this;}
130 
134  inline GetAttributesRequest& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
135 
139  inline GetAttributesRequest& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
140 
144  inline GetAttributesRequest& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
145 
152  inline bool GetConsistentRead() const{ return m_consistentRead; }
153 
160  inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
161 
168  inline GetAttributesRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
169 
170  private:
171  Aws::String m_domainName;
172  bool m_domainNameHasBeenSet;
173  Aws::String m_itemName;
174  bool m_itemNameHasBeenSet;
175  Aws::Vector<Aws::String> m_attributeNames;
176  bool m_attributeNamesHasBeenSet;
177  bool m_consistentRead;
178  bool m_consistentReadHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace SimpleDB
183 } // namespace Aws
GetAttributesRequest & AddAttributeNames(const Aws::String &value)
GetAttributesRequest & AddAttributeNames(Aws::String &&value)
GetAttributesRequest & WithItemName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Aws::String > & GetAttributeNames() const
GetAttributesRequest & WithDomainName(Aws::String &&value)
GetAttributesRequest & WithAttributeNames(Aws::Vector< Aws::String > &&value)
void SetAttributeNames(Aws::Vector< Aws::String > &&value)
GetAttributesRequest & WithItemName(const char *value)
GetAttributesRequest & AddAttributeNames(const char *value)
GetAttributesRequest & WithConsistentRead(bool value)
#define AWS_SIMPLEDB_API
GetAttributesRequest & WithDomainName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetAttributesRequest & WithItemName(Aws::String &&value)
GetAttributesRequest & WithDomainName(const Aws::String &value)
void SetItemName(const Aws::String &value)
void SetAttributeNames(const Aws::Vector< Aws::String > &value)
GetAttributesRequest & WithAttributeNames(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).
void SetDomainName(const Aws::String &value)