AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PartitionSpec.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/firehose/model/PartitionField.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Firehose
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_FIREHOSE_API PartitionSpec() = default;
42 AWS_FIREHOSE_API PartitionSpec(Aws::Utils::Json::JsonView jsonValue);
44 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
55 inline const Aws::Vector<PartitionField>& GetIdentity() const { return m_identity; }
56 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
57 template<typename IdentityT = Aws::Vector<PartitionField>>
58 void SetIdentity(IdentityT&& value) { m_identityHasBeenSet = true; m_identity = std::forward<IdentityT>(value); }
59 template<typename IdentityT = Aws::Vector<PartitionField>>
60 PartitionSpec& WithIdentity(IdentityT&& value) { SetIdentity(std::forward<IdentityT>(value)); return *this;}
61 template<typename IdentityT = PartitionField>
62 PartitionSpec& AddIdentity(IdentityT&& value) { m_identityHasBeenSet = true; m_identity.emplace_back(std::forward<IdentityT>(value)); return *this; }
64 private:
65
67 bool m_identityHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Firehose
72} // namespace Aws
AWS_FIREHOSE_API PartitionSpec(Aws::Utils::Json::JsonView jsonValue)
PartitionSpec & AddIdentity(IdentityT &&value)
AWS_FIREHOSE_API PartitionSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FIREHOSE_API PartitionSpec()=default
PartitionSpec & WithIdentity(IdentityT &&value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIdentity(IdentityT &&value)
const Aws::Vector< PartitionField > & GetIdentity() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue