168 lines
6.4 KiB
C++
168 lines
6.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/connect/Connect_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <aws/connect/model/CurrentMetricResult.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Connect
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_CONNECT_API GetCurrentMetricDataResult
|
|
{
|
|
public:
|
|
GetCurrentMetricDataResult();
|
|
GetCurrentMetricDataResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
GetCurrentMetricDataResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>If there are additional results, this is the token for the next set of
|
|
* results.</p> <p>The token expires after 5 minutes from the time it is created.
|
|
* Subsequent requests that use the token must use the same request parameters as
|
|
* the request that generated the token.</p>
|
|
*/
|
|
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
|
|
|
/**
|
|
* <p>If there are additional results, this is the token for the next set of
|
|
* results.</p> <p>The token expires after 5 minutes from the time it is created.
|
|
* Subsequent requests that use the token must use the same request parameters as
|
|
* the request that generated the token.</p>
|
|
*/
|
|
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
|
|
|
/**
|
|
* <p>If there are additional results, this is the token for the next set of
|
|
* results.</p> <p>The token expires after 5 minutes from the time it is created.
|
|
* Subsequent requests that use the token must use the same request parameters as
|
|
* the request that generated the token.</p>
|
|
*/
|
|
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>If there are additional results, this is the token for the next set of
|
|
* results.</p> <p>The token expires after 5 minutes from the time it is created.
|
|
* Subsequent requests that use the token must use the same request parameters as
|
|
* the request that generated the token.</p>
|
|
*/
|
|
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
|
|
|
/**
|
|
* <p>If there are additional results, this is the token for the next set of
|
|
* results.</p> <p>The token expires after 5 minutes from the time it is created.
|
|
* Subsequent requests that use the token must use the same request parameters as
|
|
* the request that generated the token.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>If there are additional results, this is the token for the next set of
|
|
* results.</p> <p>The token expires after 5 minutes from the time it is created.
|
|
* Subsequent requests that use the token must use the same request parameters as
|
|
* the request that generated the token.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>If there are additional results, this is the token for the next set of
|
|
* results.</p> <p>The token expires after 5 minutes from the time it is created.
|
|
* Subsequent requests that use the token must use the same request parameters as
|
|
* the request that generated the token.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Information about the real-time metrics.</p>
|
|
*/
|
|
inline const Aws::Vector<CurrentMetricResult>& GetMetricResults() const{ return m_metricResults; }
|
|
|
|
/**
|
|
* <p>Information about the real-time metrics.</p>
|
|
*/
|
|
inline void SetMetricResults(const Aws::Vector<CurrentMetricResult>& value) { m_metricResults = value; }
|
|
|
|
/**
|
|
* <p>Information about the real-time metrics.</p>
|
|
*/
|
|
inline void SetMetricResults(Aws::Vector<CurrentMetricResult>&& value) { m_metricResults = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the real-time metrics.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& WithMetricResults(const Aws::Vector<CurrentMetricResult>& value) { SetMetricResults(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the real-time metrics.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& WithMetricResults(Aws::Vector<CurrentMetricResult>&& value) { SetMetricResults(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the real-time metrics.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& AddMetricResults(const CurrentMetricResult& value) { m_metricResults.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Information about the real-time metrics.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& AddMetricResults(CurrentMetricResult&& value) { m_metricResults.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The time at which the metrics were retrieved and cached for pagination.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetDataSnapshotTime() const{ return m_dataSnapshotTime; }
|
|
|
|
/**
|
|
* <p>The time at which the metrics were retrieved and cached for pagination.</p>
|
|
*/
|
|
inline void SetDataSnapshotTime(const Aws::Utils::DateTime& value) { m_dataSnapshotTime = value; }
|
|
|
|
/**
|
|
* <p>The time at which the metrics were retrieved and cached for pagination.</p>
|
|
*/
|
|
inline void SetDataSnapshotTime(Aws::Utils::DateTime&& value) { m_dataSnapshotTime = std::move(value); }
|
|
|
|
/**
|
|
* <p>The time at which the metrics were retrieved and cached for pagination.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& WithDataSnapshotTime(const Aws::Utils::DateTime& value) { SetDataSnapshotTime(value); return *this;}
|
|
|
|
/**
|
|
* <p>The time at which the metrics were retrieved and cached for pagination.</p>
|
|
*/
|
|
inline GetCurrentMetricDataResult& WithDataSnapshotTime(Aws::Utils::DateTime&& value) { SetDataSnapshotTime(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_nextToken;
|
|
|
|
Aws::Vector<CurrentMetricResult> m_metricResults;
|
|
|
|
Aws::Utils::DateTime m_dataSnapshotTime;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Connect
|
|
} // namespace Aws
|