AWS SDK for C++  0.14.3
AWS SDK for C++
DeleteRequest.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 Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DynamoDB
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  DeleteRequest();
43  DeleteRequest& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
51  inline const Aws::Map<Aws::String, AttributeValue>& GetKey() const{ return m_key; }
52 
58  inline void SetKey(const Aws::Map<Aws::String, AttributeValue>& value) { m_keyHasBeenSet = true; m_key = value; }
59 
65  inline void SetKey(Aws::Map<Aws::String, AttributeValue>&& value) { m_keyHasBeenSet = true; m_key = value; }
66 
72  inline DeleteRequest& WithKey(const Aws::Map<Aws::String, AttributeValue>& value) { SetKey(value); return *this;}
73 
79  inline DeleteRequest& WithKey(Aws::Map<Aws::String, AttributeValue>&& value) { SetKey(value); return *this;}
80 
86  inline DeleteRequest& AddKey(const Aws::String& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key[key] = value; return *this; }
87 
93  inline DeleteRequest& AddKey(Aws::String&& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key[key] = value; return *this; }
94 
100  inline DeleteRequest& AddKey(const Aws::String& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key[key] = value; return *this; }
101 
107  inline DeleteRequest& AddKey(Aws::String&& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key[key] = value; return *this; }
108 
114  inline DeleteRequest& AddKey(const char* key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key[key] = value; return *this; }
115 
121  inline DeleteRequest& AddKey(const char* key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key[key] = value; return *this; }
122 
123  private:
125  bool m_keyHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace DynamoDB
130 } // namespace Aws
DeleteRequest & WithKey(const Aws::Map< Aws::String, AttributeValue > &value)
Definition: DeleteRequest.h:72
void SetKey(Aws::Map< Aws::String, AttributeValue > &&value)
Definition: DeleteRequest.h:65
DeleteRequest & AddKey(Aws::String &&key, AttributeValue &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
DeleteRequest & AddKey(const char *key, AttributeValue &&value)
#define AWS_DYNAMODB_API
DeleteRequest & WithKey(Aws::Map< Aws::String, AttributeValue > &&value)
Definition: DeleteRequest.h:79
DeleteRequest & AddKey(Aws::String &&key, const AttributeValue &value)
Definition: DeleteRequest.h:93
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html ...
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteRequest & AddKey(const Aws::String &key, AttributeValue &&value)
DeleteRequest & AddKey(const Aws::String &key, const AttributeValue &value)
Definition: DeleteRequest.h:86
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
Definition: DeleteRequest.h:51
DeleteRequest & AddKey(const char *key, const AttributeValue &value)
void SetKey(const Aws::Map< Aws::String, AttributeValue > &value)
Definition: DeleteRequest.h:58
JSON (JavaScript Object Notation).