This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

80 lines
2.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
#include <aws/iotsitewise/model/TumblingWindow.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTSiteWise
{
namespace Model
{
/**
* <p>Contains a time interval window used for data aggregate computations (for
* example, average, sum, count, and so on).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/MetricWindow">AWS
* API Reference</a></p>
*/
class AWS_IOTSITEWISE_API MetricWindow
{
public:
MetricWindow();
MetricWindow(Aws::Utils::Json::JsonView jsonValue);
MetricWindow& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The tumbling time interval window.</p>
*/
inline const TumblingWindow& GetTumbling() const{ return m_tumbling; }
/**
* <p>The tumbling time interval window.</p>
*/
inline bool TumblingHasBeenSet() const { return m_tumblingHasBeenSet; }
/**
* <p>The tumbling time interval window.</p>
*/
inline void SetTumbling(const TumblingWindow& value) { m_tumblingHasBeenSet = true; m_tumbling = value; }
/**
* <p>The tumbling time interval window.</p>
*/
inline void SetTumbling(TumblingWindow&& value) { m_tumblingHasBeenSet = true; m_tumbling = std::move(value); }
/**
* <p>The tumbling time interval window.</p>
*/
inline MetricWindow& WithTumbling(const TumblingWindow& value) { SetTumbling(value); return *this;}
/**
* <p>The tumbling time interval window.</p>
*/
inline MetricWindow& WithTumbling(TumblingWindow&& value) { SetTumbling(std::move(value)); return *this;}
private:
TumblingWindow m_tumbling;
bool m_tumblingHasBeenSet;
};
} // namespace Model
} // namespace IoTSiteWise
} // namespace Aws