AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Sample.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/databrew/model/SampleType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GlueDataBrew {
20namespace Model {
21
28class Sample {
29 public:
30 AWS_GLUEDATABREW_API Sample() = default;
31 AWS_GLUEDATABREW_API Sample(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GLUEDATABREW_API Sample& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetSize() const { return m_size; }
40 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
41 inline void SetSize(int value) {
42 m_sizeHasBeenSet = true;
43 m_size = value;
44 }
45 inline Sample& WithSize(int value) {
46 SetSize(value);
47 return *this;
48 }
50
52
55 inline SampleType GetType() const { return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(SampleType value) {
58 m_typeHasBeenSet = true;
59 m_type = value;
60 }
61 inline Sample& WithType(SampleType value) {
62 SetType(value);
63 return *this;
64 }
66 private:
67 int m_size{0};
68
70 bool m_sizeHasBeenSet = false;
71 bool m_typeHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace GlueDataBrew
76} // namespace Aws
void SetType(SampleType value)
Definition Sample.h:57
Sample & WithType(SampleType value)
Definition Sample.h:61
SampleType GetType() const
Definition Sample.h:55
AWS_GLUEDATABREW_API Sample()=default
AWS_GLUEDATABREW_API Sample & operator=(Aws::Utils::Json::JsonView jsonValue)
Sample & WithSize(int value)
Definition Sample.h:45
AWS_GLUEDATABREW_API Sample(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue