AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
KinesisParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace EventBridgeV2 {
20namespace Model {
21
31 public:
32 AWS_EVENTBRIDGEV2_API KinesisParameters() = default;
33 AWS_EVENTBRIDGEV2_API KinesisParameters(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_EVENTBRIDGEV2_API KinesisParameters& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
42 inline const Aws::String& GetPartitionKey() const { return m_partitionKey; }
43 inline bool PartitionKeyHasBeenSet() const { return m_partitionKeyHasBeenSet; }
44 template <typename PartitionKeyT = Aws::String>
45 void SetPartitionKey(PartitionKeyT&& value) {
46 m_partitionKeyHasBeenSet = true;
47 m_partitionKey = std::forward<PartitionKeyT>(value);
48 }
49 template <typename PartitionKeyT = Aws::String>
50 KinesisParameters& WithPartitionKey(PartitionKeyT&& value) {
51 SetPartitionKey(std::forward<PartitionKeyT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetExplicitHashKey() const { return m_explicitHashKey; }
62 inline bool ExplicitHashKeyHasBeenSet() const { return m_explicitHashKeyHasBeenSet; }
63 template <typename ExplicitHashKeyT = Aws::String>
64 void SetExplicitHashKey(ExplicitHashKeyT&& value) {
65 m_explicitHashKeyHasBeenSet = true;
66 m_explicitHashKey = std::forward<ExplicitHashKeyT>(value);
67 }
68 template <typename ExplicitHashKeyT = Aws::String>
69 KinesisParameters& WithExplicitHashKey(ExplicitHashKeyT&& value) {
70 SetExplicitHashKey(std::forward<ExplicitHashKeyT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_partitionKey;
76
77 Aws::String m_explicitHashKey;
78 bool m_partitionKeyHasBeenSet = false;
79 bool m_explicitHashKeyHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace EventBridgeV2
84} // namespace Aws
void SetExplicitHashKey(ExplicitHashKeyT &&value)
AWS_EVENTBRIDGEV2_API KinesisParameters()=default
KinesisParameters & WithPartitionKey(PartitionKeyT &&value)
AWS_EVENTBRIDGEV2_API KinesisParameters(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API KinesisParameters & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
KinesisParameters & WithExplicitHashKey(ExplicitHashKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String