AWS SDK for C++  0.14.3
AWS SDK for C++
PutRecordsRequestEntry.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
17 #include <aws/core/utils/Array.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Kinesis
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  PutRecordsRequestEntry& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
51  inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
52 
59  inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
60 
67  inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = value; }
68 
75  inline PutRecordsRequestEntry& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
76 
83  inline PutRecordsRequestEntry& WithData(Aws::Utils::ByteBuffer&& value) { SetData(value); return *this;}
84 
89  inline const Aws::String& GetExplicitHashKey() const{ return m_explicitHashKey; }
90 
95  inline void SetExplicitHashKey(const Aws::String& value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey = value; }
96 
101  inline void SetExplicitHashKey(Aws::String&& value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey = value; }
102 
107  inline void SetExplicitHashKey(const char* value) { m_explicitHashKeyHasBeenSet = true; m_explicitHashKey.assign(value); }
108 
113  inline PutRecordsRequestEntry& WithExplicitHashKey(const Aws::String& value) { SetExplicitHashKey(value); return *this;}
114 
119  inline PutRecordsRequestEntry& WithExplicitHashKey(Aws::String&& value) { SetExplicitHashKey(value); return *this;}
120 
125  inline PutRecordsRequestEntry& WithExplicitHashKey(const char* value) { SetExplicitHashKey(value); return *this;}
126 
137  inline const Aws::String& GetPartitionKey() const{ return m_partitionKey; }
138 
149  inline void SetPartitionKey(const Aws::String& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = value; }
150 
161  inline void SetPartitionKey(Aws::String&& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = value; }
162 
173  inline void SetPartitionKey(const char* value) { m_partitionKeyHasBeenSet = true; m_partitionKey.assign(value); }
174 
185  inline PutRecordsRequestEntry& WithPartitionKey(const Aws::String& value) { SetPartitionKey(value); return *this;}
186 
197  inline PutRecordsRequestEntry& WithPartitionKey(Aws::String&& value) { SetPartitionKey(value); return *this;}
198 
209  inline PutRecordsRequestEntry& WithPartitionKey(const char* value) { SetPartitionKey(value); return *this;}
210 
211  private:
212  Aws::Utils::ByteBuffer m_data;
213  bool m_dataHasBeenSet;
214  Aws::String m_explicitHashKey;
215  bool m_explicitHashKeyHasBeenSet;
216  Aws::String m_partitionKey;
217  bool m_partitionKeyHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace Kinesis
222 } // namespace Aws
void SetData(Aws::Utils::ByteBuffer &&value)
PutRecordsRequestEntry & WithPartitionKey(const Aws::String &value)
void SetExplicitHashKey(Aws::String &&value)
PutRecordsRequestEntry & WithData(const Aws::Utils::ByteBuffer &value)
void SetPartitionKey(const Aws::String &value)
const Aws::String & GetPartitionKey() const
void SetExplicitHashKey(const char *value)
PutRecordsRequestEntry & WithPartitionKey(Aws::String &&value)
PutRecordsRequestEntry & WithExplicitHashKey(const char *value)
PutRecordsRequestEntry & WithData(Aws::Utils::ByteBuffer &&value)
void SetPartitionKey(Aws::String &&value)
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutRecordsRequestEntry & WithExplicitHashKey(Aws::String &&value)
void SetData(const Aws::Utils::ByteBuffer &value)
void SetExplicitHashKey(const Aws::String &value)
const Aws::Utils::ByteBuffer & GetData() const
void SetPartitionKey(const char *value)
PutRecordsRequestEntry & WithExplicitHashKey(const Aws::String &value)
PutRecordsRequestEntry & WithPartitionKey(const char *value)
const Aws::String & GetExplicitHashKey() const
JSON (JavaScript Object Notation).