/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GlueDataBrew { namespace Model { /** *

Represents the sample size and sampling type for DataBrew to use for * interactive data analysis.

See Also:

AWS API * Reference

*/ class Sample { public: AWS_GLUEDATABREW_API Sample(); AWS_GLUEDATABREW_API Sample(Aws::Utils::Json::JsonView jsonValue); AWS_GLUEDATABREW_API Sample& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of rows in the sample.

*/ inline int GetSize() const{ return m_size; } /** *

The number of rows in the sample.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The number of rows in the sample.

*/ inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The number of rows in the sample.

*/ inline Sample& WithSize(int value) { SetSize(value); return *this;} /** *

The way in which DataBrew obtains rows from a dataset.

*/ inline const SampleType& GetType() const{ return m_type; } /** *

The way in which DataBrew obtains rows from a dataset.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The way in which DataBrew obtains rows from a dataset.

*/ inline void SetType(const SampleType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The way in which DataBrew obtains rows from a dataset.

*/ inline void SetType(SampleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The way in which DataBrew obtains rows from a dataset.

*/ inline Sample& WithType(const SampleType& value) { SetType(value); return *this;} /** *

The way in which DataBrew obtains rows from a dataset.

*/ inline Sample& WithType(SampleType&& value) { SetType(std::move(value)); return *this;} private: int m_size; bool m_sizeHasBeenSet = false; SampleType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws