AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PartitionSpec.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/firehose/Firehose_EXPORTS.h>
9#include <aws/firehose/model/PartitionField.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Firehose {
21namespace Model {
22
35 public:
36 AWS_FIREHOSE_API PartitionSpec() = default;
37 AWS_FIREHOSE_API PartitionSpec(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
49 inline const Aws::Vector<PartitionField>& GetIdentity() const { return m_identity; }
50 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
51 template <typename IdentityT = Aws::Vector<PartitionField>>
52 void SetIdentity(IdentityT&& value) {
53 m_identityHasBeenSet = true;
54 m_identity = std::forward<IdentityT>(value);
55 }
56 template <typename IdentityT = Aws::Vector<PartitionField>>
57 PartitionSpec& WithIdentity(IdentityT&& value) {
58 SetIdentity(std::forward<IdentityT>(value));
59 return *this;
60 }
61 template <typename IdentityT = PartitionField>
62 PartitionSpec& AddIdentity(IdentityT&& value) {
63 m_identityHasBeenSet = true;
64 m_identity.emplace_back(std::forward<IdentityT>(value));
65 return *this;
66 }
68 private:
70 bool m_identityHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace Firehose
75} // 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