AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
PartitionKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/keyspaces/Keyspaces_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Keyspaces {
20namespace Model {
21
31 public:
32 AWS_KEYSPACES_API PartitionKey() = default;
33 AWS_KEYSPACES_API PartitionKey(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_KEYSPACES_API PartitionKey& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 PartitionKey& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54 private:
55 Aws::String m_name;
56 bool m_nameHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace Keyspaces
61} // namespace Aws
AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_KEYSPACES_API PartitionKey(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_KEYSPACES_API PartitionKey & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_KEYSPACES_API PartitionKey()=default
const Aws::String & GetName() const
PartitionKey & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String