AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
TsvStoreOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/omics/Omics_EXPORTS.h>
11#include <aws/omics/model/AnnotationType.h>
12#include <aws/omics/model/FormatToHeaderKey.h>
13#include <aws/omics/model/SchemaValueType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Omics {
25namespace Model {
26
33 public:
34 AWS_OMICS_API TsvStoreOptions() = default;
37 AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline AnnotationType GetAnnotationType() const { return m_annotationType; }
44 inline bool AnnotationTypeHasBeenSet() const { return m_annotationTypeHasBeenSet; }
45 inline void SetAnnotationType(AnnotationType value) {
46 m_annotationTypeHasBeenSet = true;
47 m_annotationType = value;
48 }
50 SetAnnotationType(value);
51 return *this;
52 }
54
56
59 inline const Aws::Map<FormatToHeaderKey, Aws::String>& GetFormatToHeader() const { return m_formatToHeader; }
60 inline bool FormatToHeaderHasBeenSet() const { return m_formatToHeaderHasBeenSet; }
61 template <typename FormatToHeaderT = Aws::Map<FormatToHeaderKey, Aws::String>>
62 void SetFormatToHeader(FormatToHeaderT&& value) {
63 m_formatToHeaderHasBeenSet = true;
64 m_formatToHeader = std::forward<FormatToHeaderT>(value);
65 }
66 template <typename FormatToHeaderT = Aws::Map<FormatToHeaderKey, Aws::String>>
67 TsvStoreOptions& WithFormatToHeader(FormatToHeaderT&& value) {
68 SetFormatToHeader(std::forward<FormatToHeaderT>(value));
69 return *this;
70 }
72 m_formatToHeaderHasBeenSet = true;
73 m_formatToHeader.emplace(key, value);
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Aws::Map<Aws::String, SchemaValueType>>& GetSchema() const { return m_schema; }
83 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
84 template <typename SchemaT = Aws::Vector<Aws::Map<Aws::String, SchemaValueType>>>
85 void SetSchema(SchemaT&& value) {
86 m_schemaHasBeenSet = true;
87 m_schema = std::forward<SchemaT>(value);
88 }
89 template <typename SchemaT = Aws::Vector<Aws::Map<Aws::String, SchemaValueType>>>
90 TsvStoreOptions& WithSchema(SchemaT&& value) {
91 SetSchema(std::forward<SchemaT>(value));
92 return *this;
93 }
94 template <typename SchemaT = Aws::Map<Aws::String, SchemaValueType>>
95 TsvStoreOptions& AddSchema(SchemaT&& value) {
96 m_schemaHasBeenSet = true;
97 m_schema.emplace_back(std::forward<SchemaT>(value));
98 return *this;
99 }
101 private:
102 AnnotationType m_annotationType{AnnotationType::NOT_SET};
103
105
107 bool m_annotationTypeHasBeenSet = false;
108 bool m_formatToHeaderHasBeenSet = false;
109 bool m_schemaHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Omics
114} // namespace Aws
AWS_OMICS_API TsvStoreOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< FormatToHeaderKey, Aws::String > & GetFormatToHeader() const
void SetFormatToHeader(FormatToHeaderT &&value)
const Aws::Vector< Aws::Map< Aws::String, SchemaValueType > > & GetSchema() const
AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const
AnnotationType GetAnnotationType() const
TsvStoreOptions & WithFormatToHeader(FormatToHeaderT &&value)
TsvStoreOptions & WithAnnotationType(AnnotationType value)
TsvStoreOptions & WithSchema(SchemaT &&value)
TsvStoreOptions & AddSchema(SchemaT &&value)
AWS_OMICS_API TsvStoreOptions()=default
TsvStoreOptions & AddFormatToHeader(FormatToHeaderKey key, Aws::String value)
AWS_OMICS_API TsvStoreOptions(Aws::Utils::Json::JsonView jsonValue)
void SetAnnotationType(AnnotationType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue