AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataLakeDatasetSchema.h
1
6#pragma once
7#include <aws/supplychain/SupplyChain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/supplychain/model/DataLakeDatasetSchemaField.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 SupplyChain
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SUPPLYCHAIN_API DataLakeDatasetSchema();
37 AWS_SUPPLYCHAIN_API DataLakeDatasetSchema(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline DataLakeDatasetSchema& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline DataLakeDatasetSchema& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline DataLakeDatasetSchema& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::Vector<DataLakeDatasetSchemaField>& GetFields() const{ return m_fields; }
61 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
62 inline void SetFields(const Aws::Vector<DataLakeDatasetSchemaField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
63 inline void SetFields(Aws::Vector<DataLakeDatasetSchemaField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
65 inline DataLakeDatasetSchema& WithFields(Aws::Vector<DataLakeDatasetSchemaField>&& value) { SetFields(std::move(value)); return *this;}
66 inline DataLakeDatasetSchema& AddFields(const DataLakeDatasetSchemaField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
67 inline DataLakeDatasetSchema& AddFields(DataLakeDatasetSchemaField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_name;
72 bool m_nameHasBeenSet = false;
73
75 bool m_fieldsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SupplyChain
80} // namespace Aws
DataLakeDatasetSchema & WithName(Aws::String &&value)
DataLakeDatasetSchema & WithName(const Aws::String &value)
DataLakeDatasetSchema & AddFields(const DataLakeDatasetSchemaField &value)
AWS_SUPPLYCHAIN_API DataLakeDatasetSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
DataLakeDatasetSchema & WithFields(Aws::Vector< DataLakeDatasetSchemaField > &&value)
void SetFields(const Aws::Vector< DataLakeDatasetSchemaField > &value)
DataLakeDatasetSchema & WithName(const char *value)
AWS_SUPPLYCHAIN_API DataLakeDatasetSchema(Aws::Utils::Json::JsonView jsonValue)
void SetFields(Aws::Vector< DataLakeDatasetSchemaField > &&value)
const Aws::Vector< DataLakeDatasetSchemaField > & GetFields() const
DataLakeDatasetSchema & AddFields(DataLakeDatasetSchemaField &&value)
AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
DataLakeDatasetSchema & WithFields(const Aws::Vector< DataLakeDatasetSchemaField > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue