/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace TimestreamWrite
{
namespace Model
{
/**
* See Also:
AWS
* API Reference
*/
class MixedMeasureMapping
{
public:
AWS_TIMESTREAMWRITE_API MixedMeasureMapping();
AWS_TIMESTREAMWRITE_API MixedMeasureMapping(Aws::Utils::Json::JsonView jsonValue);
AWS_TIMESTREAMWRITE_API MixedMeasureMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
*
*/
inline const Aws::String& GetMeasureName() const{ return m_measureName; }
/**
*
*/
inline bool MeasureNameHasBeenSet() const { return m_measureNameHasBeenSet; }
/**
*
*/
inline void SetMeasureName(const Aws::String& value) { m_measureNameHasBeenSet = true; m_measureName = value; }
/**
*
*/
inline void SetMeasureName(Aws::String&& value) { m_measureNameHasBeenSet = true; m_measureName = std::move(value); }
/**
*
*/
inline void SetMeasureName(const char* value) { m_measureNameHasBeenSet = true; m_measureName.assign(value); }
/**
*
*/
inline MixedMeasureMapping& WithMeasureName(const Aws::String& value) { SetMeasureName(value); return *this;}
/**
*
*/
inline MixedMeasureMapping& WithMeasureName(Aws::String&& value) { SetMeasureName(std::move(value)); return *this;}
/**
*
*/
inline MixedMeasureMapping& WithMeasureName(const char* value) { SetMeasureName(value); return *this;}
/**
*
*/
inline const Aws::String& GetSourceColumn() const{ return m_sourceColumn; }
/**
*
*/
inline bool SourceColumnHasBeenSet() const { return m_sourceColumnHasBeenSet; }
/**
*
*/
inline void SetSourceColumn(const Aws::String& value) { m_sourceColumnHasBeenSet = true; m_sourceColumn = value; }
/**
*
*/
inline void SetSourceColumn(Aws::String&& value) { m_sourceColumnHasBeenSet = true; m_sourceColumn = std::move(value); }
/**
*
*/
inline void SetSourceColumn(const char* value) { m_sourceColumnHasBeenSet = true; m_sourceColumn.assign(value); }
/**
*
*/
inline MixedMeasureMapping& WithSourceColumn(const Aws::String& value) { SetSourceColumn(value); return *this;}
/**
*
*/
inline MixedMeasureMapping& WithSourceColumn(Aws::String&& value) { SetSourceColumn(std::move(value)); return *this;}
/**
*
*/
inline MixedMeasureMapping& WithSourceColumn(const char* value) { SetSourceColumn(value); return *this;}
/**
*
*/
inline const Aws::String& GetTargetMeasureName() const{ return m_targetMeasureName; }
/**
*
*/
inline bool TargetMeasureNameHasBeenSet() const { return m_targetMeasureNameHasBeenSet; }
/**
*
*/
inline void SetTargetMeasureName(const Aws::String& value) { m_targetMeasureNameHasBeenSet = true; m_targetMeasureName = value; }
/**
*
*/
inline void SetTargetMeasureName(Aws::String&& value) { m_targetMeasureNameHasBeenSet = true; m_targetMeasureName = std::move(value); }
/**
*
*/
inline void SetTargetMeasureName(const char* value) { m_targetMeasureNameHasBeenSet = true; m_targetMeasureName.assign(value); }
/**
*
*/
inline MixedMeasureMapping& WithTargetMeasureName(const Aws::String& value) { SetTargetMeasureName(value); return *this;}
/**
*
*/
inline MixedMeasureMapping& WithTargetMeasureName(Aws::String&& value) { SetTargetMeasureName(std::move(value)); return *this;}
/**
*
*/
inline MixedMeasureMapping& WithTargetMeasureName(const char* value) { SetTargetMeasureName(value); return *this;}
/**
*
*/
inline const MeasureValueType& GetMeasureValueType() const{ return m_measureValueType; }
/**
*
*/
inline bool MeasureValueTypeHasBeenSet() const { return m_measureValueTypeHasBeenSet; }
/**
*
*/
inline void SetMeasureValueType(const MeasureValueType& value) { m_measureValueTypeHasBeenSet = true; m_measureValueType = value; }
/**
*
*/
inline void SetMeasureValueType(MeasureValueType&& value) { m_measureValueTypeHasBeenSet = true; m_measureValueType = std::move(value); }
/**
*
*/
inline MixedMeasureMapping& WithMeasureValueType(const MeasureValueType& value) { SetMeasureValueType(value); return *this;}
/**
*
*/
inline MixedMeasureMapping& WithMeasureValueType(MeasureValueType&& value) { SetMeasureValueType(std::move(value)); return *this;}
/**
*
*/
inline const Aws::Vector& GetMultiMeasureAttributeMappings() const{ return m_multiMeasureAttributeMappings; }
/**
*
*/
inline bool MultiMeasureAttributeMappingsHasBeenSet() const { return m_multiMeasureAttributeMappingsHasBeenSet; }
/**
*
*/
inline void SetMultiMeasureAttributeMappings(const Aws::Vector& value) { m_multiMeasureAttributeMappingsHasBeenSet = true; m_multiMeasureAttributeMappings = value; }
/**
*
*/
inline void SetMultiMeasureAttributeMappings(Aws::Vector&& value) { m_multiMeasureAttributeMappingsHasBeenSet = true; m_multiMeasureAttributeMappings = std::move(value); }
/**
*
*/
inline MixedMeasureMapping& WithMultiMeasureAttributeMappings(const Aws::Vector& value) { SetMultiMeasureAttributeMappings(value); return *this;}
/**
*
*/
inline MixedMeasureMapping& WithMultiMeasureAttributeMappings(Aws::Vector&& value) { SetMultiMeasureAttributeMappings(std::move(value)); return *this;}
/**
*
*/
inline MixedMeasureMapping& AddMultiMeasureAttributeMappings(const MultiMeasureAttributeMapping& value) { m_multiMeasureAttributeMappingsHasBeenSet = true; m_multiMeasureAttributeMappings.push_back(value); return *this; }
/**
*
*/
inline MixedMeasureMapping& AddMultiMeasureAttributeMappings(MultiMeasureAttributeMapping&& value) { m_multiMeasureAttributeMappingsHasBeenSet = true; m_multiMeasureAttributeMappings.push_back(std::move(value)); return *this; }
private:
Aws::String m_measureName;
bool m_measureNameHasBeenSet = false;
Aws::String m_sourceColumn;
bool m_sourceColumnHasBeenSet = false;
Aws::String m_targetMeasureName;
bool m_targetMeasureNameHasBeenSet = false;
MeasureValueType m_measureValueType;
bool m_measureValueTypeHasBeenSet = false;
Aws::Vector m_multiMeasureAttributeMappings;
bool m_multiMeasureAttributeMappingsHasBeenSet = false;
};
} // namespace Model
} // namespace TimestreamWrite
} // namespace Aws