AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PartitionObjects.h
1
6#pragma once
7#include <aws/lakeformation/LakeFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lakeformation/model/TableObject.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LakeFormation
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LAKEFORMATION_API PartitionObjects() = default;
38 AWS_LAKEFORMATION_API PartitionObjects(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LAKEFORMATION_API PartitionObjects& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetPartitionValues() const { return m_partitionValues; }
48 inline bool PartitionValuesHasBeenSet() const { return m_partitionValuesHasBeenSet; }
49 template<typename PartitionValuesT = Aws::Vector<Aws::String>>
50 void SetPartitionValues(PartitionValuesT&& value) { m_partitionValuesHasBeenSet = true; m_partitionValues = std::forward<PartitionValuesT>(value); }
51 template<typename PartitionValuesT = Aws::Vector<Aws::String>>
52 PartitionObjects& WithPartitionValues(PartitionValuesT&& value) { SetPartitionValues(std::forward<PartitionValuesT>(value)); return *this;}
53 template<typename PartitionValuesT = Aws::String>
54 PartitionObjects& AddPartitionValues(PartitionValuesT&& value) { m_partitionValuesHasBeenSet = true; m_partitionValues.emplace_back(std::forward<PartitionValuesT>(value)); return *this; }
56
58
61 inline const Aws::Vector<TableObject>& GetObjects() const { return m_objects; }
62 inline bool ObjectsHasBeenSet() const { return m_objectsHasBeenSet; }
63 template<typename ObjectsT = Aws::Vector<TableObject>>
64 void SetObjects(ObjectsT&& value) { m_objectsHasBeenSet = true; m_objects = std::forward<ObjectsT>(value); }
65 template<typename ObjectsT = Aws::Vector<TableObject>>
66 PartitionObjects& WithObjects(ObjectsT&& value) { SetObjects(std::forward<ObjectsT>(value)); return *this;}
67 template<typename ObjectsT = TableObject>
68 PartitionObjects& AddObjects(ObjectsT&& value) { m_objectsHasBeenSet = true; m_objects.emplace_back(std::forward<ObjectsT>(value)); return *this; }
70 private:
71
72 Aws::Vector<Aws::String> m_partitionValues;
73 bool m_partitionValuesHasBeenSet = false;
74
76 bool m_objectsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace LakeFormation
81} // namespace Aws
AWS_LAKEFORMATION_API PartitionObjects & operator=(Aws::Utils::Json::JsonView jsonValue)
PartitionObjects & WithPartitionValues(PartitionValuesT &&value)
PartitionObjects & AddPartitionValues(PartitionValuesT &&value)
const Aws::Vector< Aws::String > & GetPartitionValues() const
PartitionObjects & AddObjects(ObjectsT &&value)
void SetPartitionValues(PartitionValuesT &&value)
PartitionObjects & WithObjects(ObjectsT &&value)
AWS_LAKEFORMATION_API PartitionObjects()=default
AWS_LAKEFORMATION_API PartitionObjects(Aws::Utils::Json::JsonView jsonValue)
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< TableObject > & GetObjects() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue