feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ForecastService
{
namespace ForecastServiceEndpoint
{
AWS_FORECASTSERVICE_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace ForecastServiceEndpoint
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_FORECASTSERVICE_API ForecastServiceErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,76 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/forecast/ForecastService_EXPORTS.h>
namespace Aws
{
namespace ForecastService
{
enum class ForecastServiceErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
INVALID_INPUT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_NEXT_TOKEN,
LIMIT_EXCEEDED,
RESOURCE_ALREADY_EXISTS,
RESOURCE_IN_USE
};
class AWS_FORECASTSERVICE_API ForecastServiceError : public Aws::Client::AWSError<ForecastServiceErrors>
{
public:
ForecastServiceError() {}
ForecastServiceError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<ForecastServiceErrors>(rhs) {}
ForecastServiceError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<ForecastServiceErrors>(rhs) {}
ForecastServiceError(const Aws::Client::AWSError<ForecastServiceErrors>& rhs) : Aws::Client::AWSError<ForecastServiceErrors>(rhs) {}
ForecastServiceError(Aws::Client::AWSError<ForecastServiceErrors>&& rhs) : Aws::Client::AWSError<ForecastServiceErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace ForecastServiceErrorMapper
{
AWS_FORECASTSERVICE_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace ForecastService
{
class AWS_FORECASTSERVICE_API ForecastServiceRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~ForecastServiceRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-06-26"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_FORECASTSERVICE_EXPORTS
#define AWS_FORECASTSERVICE_API __declspec(dllexport)
#else
#define AWS_FORECASTSERVICE_API __declspec(dllimport)
#endif /* AWS_FORECASTSERVICE_EXPORTS */
#else
#define AWS_FORECASTSERVICE_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_FORECASTSERVICE_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
enum class AttributeType
{
NOT_SET,
string,
integer,
float_,
timestamp
};
namespace AttributeTypeMapper
{
AWS_FORECASTSERVICE_API AttributeType GetAttributeTypeForName(const Aws::String& name);
AWS_FORECASTSERVICE_API Aws::String GetNameForAttributeType(AttributeType value);
} // namespace AttributeTypeMapper
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,140 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Specifies a categorical hyperparameter and it's range of tunable values. This
* object is part of the <a>ParameterRanges</a> object.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/CategoricalParameterRange">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API CategoricalParameterRange
{
public:
CategoricalParameterRange();
CategoricalParameterRange(Aws::Utils::Json::JsonView jsonValue);
CategoricalParameterRange& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the categorical hyperparameter to tune.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the categorical hyperparameter to tune.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the categorical hyperparameter to tune.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the categorical hyperparameter to tune.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the categorical hyperparameter to tune.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the categorical hyperparameter to tune.</p>
*/
inline CategoricalParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the categorical hyperparameter to tune.</p>
*/
inline CategoricalParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the categorical hyperparameter to tune.</p>
*/
inline CategoricalParameterRange& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline CategoricalParameterRange& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline CategoricalParameterRange& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline CategoricalParameterRange& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline CategoricalParameterRange& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
/**
* <p>A list of the tunable categories for the hyperparameter.</p>
*/
inline CategoricalParameterRange& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,251 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/ScalingType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Specifies a continuous hyperparameter and it's range of tunable values. This
* object is part of the <a>ParameterRanges</a> object.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/ContinuousParameterRange">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API ContinuousParameterRange
{
public:
ContinuousParameterRange();
ContinuousParameterRange(Aws::Utils::Json::JsonView jsonValue);
ContinuousParameterRange& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline ContinuousParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline ContinuousParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline ContinuousParameterRange& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The maximum tunable value of the hyperparameter.</p>
*/
inline double GetMaxValue() const{ return m_maxValue; }
/**
* <p>The maximum tunable value of the hyperparameter.</p>
*/
inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
/**
* <p>The maximum tunable value of the hyperparameter.</p>
*/
inline void SetMaxValue(double value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
/**
* <p>The maximum tunable value of the hyperparameter.</p>
*/
inline ContinuousParameterRange& WithMaxValue(double value) { SetMaxValue(value); return *this;}
/**
* <p>The minimum tunable value of the hyperparameter.</p>
*/
inline double GetMinValue() const{ return m_minValue; }
/**
* <p>The minimum tunable value of the hyperparameter.</p>
*/
inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
/**
* <p>The minimum tunable value of the hyperparameter.</p>
*/
inline void SetMinValue(double value) { m_minValueHasBeenSet = true; m_minValue = value; }
/**
* <p>The minimum tunable value of the hyperparameter.</p>
*/
inline ContinuousParameterRange& WithMinValue(double value) { SetMinValue(value); return *this;}
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>hyperparameter tuning
* searches the values in the hyperparameter range by using a reverse logarithmic
* scale.</p> <p>Reverse logarithmic scaling works only for ranges that are
* entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd> </dl> <p>For information
* about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline const ScalingType& GetScalingType() const{ return m_scalingType; }
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>hyperparameter tuning
* searches the values in the hyperparameter range by using a reverse logarithmic
* scale.</p> <p>Reverse logarithmic scaling works only for ranges that are
* entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd> </dl> <p>For information
* about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline bool ScalingTypeHasBeenSet() const { return m_scalingTypeHasBeenSet; }
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>hyperparameter tuning
* searches the values in the hyperparameter range by using a reverse logarithmic
* scale.</p> <p>Reverse logarithmic scaling works only for ranges that are
* entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd> </dl> <p>For information
* about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline void SetScalingType(const ScalingType& value) { m_scalingTypeHasBeenSet = true; m_scalingType = value; }
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>hyperparameter tuning
* searches the values in the hyperparameter range by using a reverse logarithmic
* scale.</p> <p>Reverse logarithmic scaling works only for ranges that are
* entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd> </dl> <p>For information
* about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline void SetScalingType(ScalingType&& value) { m_scalingTypeHasBeenSet = true; m_scalingType = std::move(value); }
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>hyperparameter tuning
* searches the values in the hyperparameter range by using a reverse logarithmic
* scale.</p> <p>Reverse logarithmic scaling works only for ranges that are
* entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd> </dl> <p>For information
* about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline ContinuousParameterRange& WithScalingType(const ScalingType& value) { SetScalingType(value); return *this;}
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>hyperparameter tuning
* searches the values in the hyperparameter range by using a reverse logarithmic
* scale.</p> <p>Reverse logarithmic scaling works only for ranges that are
* entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd> </dl> <p>For information
* about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline ContinuousParameterRange& WithScalingType(ScalingType&& value) { SetScalingType(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
double m_maxValue;
bool m_maxValueHasBeenSet;
double m_minValue;
bool m_minValueHasBeenSet;
ScalingType m_scalingType;
bool m_scalingTypeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,422 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/Domain.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Tag.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API CreateDatasetGroupRequest : public ForecastServiceRequest
{
public:
CreateDatasetGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateDatasetGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A name for the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupName() const{ return m_datasetGroupName; }
/**
* <p>A name for the dataset group.</p>
*/
inline bool DatasetGroupNameHasBeenSet() const { return m_datasetGroupNameHasBeenSet; }
/**
* <p>A name for the dataset group.</p>
*/
inline void SetDatasetGroupName(const Aws::String& value) { m_datasetGroupNameHasBeenSet = true; m_datasetGroupName = value; }
/**
* <p>A name for the dataset group.</p>
*/
inline void SetDatasetGroupName(Aws::String&& value) { m_datasetGroupNameHasBeenSet = true; m_datasetGroupName = std::move(value); }
/**
* <p>A name for the dataset group.</p>
*/
inline void SetDatasetGroupName(const char* value) { m_datasetGroupNameHasBeenSet = true; m_datasetGroupName.assign(value); }
/**
* <p>A name for the dataset group.</p>
*/
inline CreateDatasetGroupRequest& WithDatasetGroupName(const Aws::String& value) { SetDatasetGroupName(value); return *this;}
/**
* <p>A name for the dataset group.</p>
*/
inline CreateDatasetGroupRequest& WithDatasetGroupName(Aws::String&& value) { SetDatasetGroupName(std::move(value)); return *this;}
/**
* <p>A name for the dataset group.</p>
*/
inline CreateDatasetGroupRequest& WithDatasetGroupName(const char* value) { SetDatasetGroupName(value); return *this;}
/**
* <p>The domain associated with the dataset group. When you add a dataset to a
* dataset group, this value and the value specified for the <code>Domain</code>
* parameter of the <a>CreateDataset</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in training data that you import to a dataset. For
* example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires that <code>item_id</code>, <code>timestamp</code>, and
* <code>demand</code> fields are present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline const Domain& GetDomain() const{ return m_domain; }
/**
* <p>The domain associated with the dataset group. When you add a dataset to a
* dataset group, this value and the value specified for the <code>Domain</code>
* parameter of the <a>CreateDataset</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in training data that you import to a dataset. For
* example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires that <code>item_id</code>, <code>timestamp</code>, and
* <code>demand</code> fields are present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
/**
* <p>The domain associated with the dataset group. When you add a dataset to a
* dataset group, this value and the value specified for the <code>Domain</code>
* parameter of the <a>CreateDataset</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in training data that you import to a dataset. For
* example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires that <code>item_id</code>, <code>timestamp</code>, and
* <code>demand</code> fields are present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
/**
* <p>The domain associated with the dataset group. When you add a dataset to a
* dataset group, this value and the value specified for the <code>Domain</code>
* parameter of the <a>CreateDataset</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in training data that you import to a dataset. For
* example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires that <code>item_id</code>, <code>timestamp</code>, and
* <code>demand</code> fields are present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
/**
* <p>The domain associated with the dataset group. When you add a dataset to a
* dataset group, this value and the value specified for the <code>Domain</code>
* parameter of the <a>CreateDataset</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in training data that you import to a dataset. For
* example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires that <code>item_id</code>, <code>timestamp</code>, and
* <code>demand</code> fields are present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline CreateDatasetGroupRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;}
/**
* <p>The domain associated with the dataset group. When you add a dataset to a
* dataset group, this value and the value specified for the <code>Domain</code>
* parameter of the <a>CreateDataset</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in training data that you import to a dataset. For
* example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires that <code>item_id</code>, <code>timestamp</code>, and
* <code>demand</code> fields are present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline CreateDatasetGroupRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline const Aws::Vector<Aws::String>& GetDatasetArns() const{ return m_datasetArns; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline bool DatasetArnsHasBeenSet() const { return m_datasetArnsHasBeenSet; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline void SetDatasetArns(const Aws::Vector<Aws::String>& value) { m_datasetArnsHasBeenSet = true; m_datasetArns = value; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline void SetDatasetArns(Aws::Vector<Aws::String>&& value) { m_datasetArnsHasBeenSet = true; m_datasetArns = std::move(value); }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline CreateDatasetGroupRequest& WithDatasetArns(const Aws::Vector<Aws::String>& value) { SetDatasetArns(value); return *this;}
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline CreateDatasetGroupRequest& WithDatasetArns(Aws::Vector<Aws::String>&& value) { SetDatasetArns(std::move(value)); return *this;}
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline CreateDatasetGroupRequest& AddDatasetArns(const Aws::String& value) { m_datasetArnsHasBeenSet = true; m_datasetArns.push_back(value); return *this; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline CreateDatasetGroupRequest& AddDatasetArns(Aws::String&& value) { m_datasetArnsHasBeenSet = true; m_datasetArns.push_back(std::move(value)); return *this; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets that you want to
* include in the dataset group.</p>
*/
inline CreateDatasetGroupRequest& AddDatasetArns(const char* value) { m_datasetArnsHasBeenSet = true; m_datasetArns.push_back(value); return *this; }
/**
* <p>The optional metadata that you apply to the dataset group to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The optional metadata that you apply to the dataset group to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The optional metadata that you apply to the dataset group to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The optional metadata that you apply to the dataset group to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The optional metadata that you apply to the dataset group to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The optional metadata that you apply to the dataset group to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the dataset group to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The optional metadata that you apply to the dataset group to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_datasetGroupName;
bool m_datasetGroupNameHasBeenSet;
Domain m_domain;
bool m_domainHasBeenSet;
Aws::Vector<Aws::String> m_datasetArns;
bool m_datasetArnsHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API CreateDatasetGroupResult
{
public:
CreateDatasetGroupResult();
CreateDatasetGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDatasetGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline CreateDatasetGroupResult& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline CreateDatasetGroupResult& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline CreateDatasetGroupResult& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
private:
Aws::String m_datasetGroupArn;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,520 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DataSource.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Tag.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API CreateDatasetImportJobRequest : public ForecastServiceRequest
{
public:
CreateDatasetImportJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateDatasetImportJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name for the dataset import job. We recommend including the current
* timestamp in the name, for example, <code>20190721DatasetImport</code>. This can
* help you avoid getting a <code>ResourceAlreadyExistsException</code>
* exception.</p>
*/
inline const Aws::String& GetDatasetImportJobName() const{ return m_datasetImportJobName; }
/**
* <p>The name for the dataset import job. We recommend including the current
* timestamp in the name, for example, <code>20190721DatasetImport</code>. This can
* help you avoid getting a <code>ResourceAlreadyExistsException</code>
* exception.</p>
*/
inline bool DatasetImportJobNameHasBeenSet() const { return m_datasetImportJobNameHasBeenSet; }
/**
* <p>The name for the dataset import job. We recommend including the current
* timestamp in the name, for example, <code>20190721DatasetImport</code>. This can
* help you avoid getting a <code>ResourceAlreadyExistsException</code>
* exception.</p>
*/
inline void SetDatasetImportJobName(const Aws::String& value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName = value; }
/**
* <p>The name for the dataset import job. We recommend including the current
* timestamp in the name, for example, <code>20190721DatasetImport</code>. This can
* help you avoid getting a <code>ResourceAlreadyExistsException</code>
* exception.</p>
*/
inline void SetDatasetImportJobName(Aws::String&& value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName = std::move(value); }
/**
* <p>The name for the dataset import job. We recommend including the current
* timestamp in the name, for example, <code>20190721DatasetImport</code>. This can
* help you avoid getting a <code>ResourceAlreadyExistsException</code>
* exception.</p>
*/
inline void SetDatasetImportJobName(const char* value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName.assign(value); }
/**
* <p>The name for the dataset import job. We recommend including the current
* timestamp in the name, for example, <code>20190721DatasetImport</code>. This can
* help you avoid getting a <code>ResourceAlreadyExistsException</code>
* exception.</p>
*/
inline CreateDatasetImportJobRequest& WithDatasetImportJobName(const Aws::String& value) { SetDatasetImportJobName(value); return *this;}
/**
* <p>The name for the dataset import job. We recommend including the current
* timestamp in the name, for example, <code>20190721DatasetImport</code>. This can
* help you avoid getting a <code>ResourceAlreadyExistsException</code>
* exception.</p>
*/
inline CreateDatasetImportJobRequest& WithDatasetImportJobName(Aws::String&& value) { SetDatasetImportJobName(std::move(value)); return *this;}
/**
* <p>The name for the dataset import job. We recommend including the current
* timestamp in the name, for example, <code>20190721DatasetImport</code>. This can
* help you avoid getting a <code>ResourceAlreadyExistsException</code>
* exception.</p>
*/
inline CreateDatasetImportJobRequest& WithDatasetImportJobName(const char* value) { SetDatasetImportJobName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want
* to import data to.</p>
*/
inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want
* to import data to.</p>
*/
inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want
* to import data to.</p>
*/
inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want
* to import data to.</p>
*/
inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want
* to import data to.</p>
*/
inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want
* to import data to.</p>
*/
inline CreateDatasetImportJobRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want
* to import data to.</p>
*/
inline CreateDatasetImportJobRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want
* to import data to.</p>
*/
inline CreateDatasetImportJobRequest& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> must include an AWS Key Management Service (KMS)
* key and the IAM role must allow Amazon Forecast permission to access the key.
* The KMS key and IAM role must match those specified in the
* <code>EncryptionConfig</code> parameter of the <a>CreateDataset</a>
* operation.</p>
*/
inline const DataSource& GetDataSource() const{ return m_dataSource; }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> must include an AWS Key Management Service (KMS)
* key and the IAM role must allow Amazon Forecast permission to access the key.
* The KMS key and IAM role must match those specified in the
* <code>EncryptionConfig</code> parameter of the <a>CreateDataset</a>
* operation.</p>
*/
inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> must include an AWS Key Management Service (KMS)
* key and the IAM role must allow Amazon Forecast permission to access the key.
* The KMS key and IAM role must match those specified in the
* <code>EncryptionConfig</code> parameter of the <a>CreateDataset</a>
* operation.</p>
*/
inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> must include an AWS Key Management Service (KMS)
* key and the IAM role must allow Amazon Forecast permission to access the key.
* The KMS key and IAM role must match those specified in the
* <code>EncryptionConfig</code> parameter of the <a>CreateDataset</a>
* operation.</p>
*/
inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> must include an AWS Key Management Service (KMS)
* key and the IAM role must allow Amazon Forecast permission to access the key.
* The KMS key and IAM role must match those specified in the
* <code>EncryptionConfig</code> parameter of the <a>CreateDataset</a>
* operation.</p>
*/
inline CreateDatasetImportJobRequest& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;}
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> must include an AWS Key Management Service (KMS)
* key and the IAM role must allow Amazon Forecast permission to access the key.
* The KMS key and IAM role must match those specified in the
* <code>EncryptionConfig</code> parameter of the <a>CreateDataset</a>
* operation.</p>
*/
inline CreateDatasetImportJobRequest& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;}
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't
* specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p>
*/
inline const Aws::String& GetTimestampFormat() const{ return m_timestampFormat; }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't
* specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p>
*/
inline bool TimestampFormatHasBeenSet() const { return m_timestampFormatHasBeenSet; }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't
* specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p>
*/
inline void SetTimestampFormat(const Aws::String& value) { m_timestampFormatHasBeenSet = true; m_timestampFormat = value; }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't
* specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p>
*/
inline void SetTimestampFormat(Aws::String&& value) { m_timestampFormatHasBeenSet = true; m_timestampFormat = std::move(value); }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't
* specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p>
*/
inline void SetTimestampFormat(const char* value) { m_timestampFormatHasBeenSet = true; m_timestampFormat.assign(value); }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't
* specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p>
*/
inline CreateDatasetImportJobRequest& WithTimestampFormat(const Aws::String& value) { SetTimestampFormat(value); return *this;}
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't
* specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p>
*/
inline CreateDatasetImportJobRequest& WithTimestampFormat(Aws::String&& value) { SetTimestampFormat(std::move(value)); return *this;}
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't
* specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p>
*/
inline CreateDatasetImportJobRequest& WithTimestampFormat(const char* value) { SetTimestampFormat(value); return *this;}
/**
* <p>The optional metadata that you apply to the dataset import job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The optional metadata that you apply to the dataset import job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The optional metadata that you apply to the dataset import job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The optional metadata that you apply to the dataset import job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The optional metadata that you apply to the dataset import job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetImportJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The optional metadata that you apply to the dataset import job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetImportJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the dataset import job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetImportJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The optional metadata that you apply to the dataset import job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetImportJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_datasetImportJobName;
bool m_datasetImportJobNameHasBeenSet;
Aws::String m_datasetArn;
bool m_datasetArnHasBeenSet;
DataSource m_dataSource;
bool m_dataSourceHasBeenSet;
Aws::String m_timestampFormat;
bool m_timestampFormatHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API CreateDatasetImportJobResult
{
public:
CreateDatasetImportJobResult();
CreateDatasetImportJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDatasetImportJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline const Aws::String& GetDatasetImportJobArn() const{ return m_datasetImportJobArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(const Aws::String& value) { m_datasetImportJobArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(Aws::String&& value) { m_datasetImportJobArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(const char* value) { m_datasetImportJobArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline CreateDatasetImportJobResult& WithDatasetImportJobArn(const Aws::String& value) { SetDatasetImportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline CreateDatasetImportJobResult& WithDatasetImportJobArn(Aws::String&& value) { SetDatasetImportJobArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline CreateDatasetImportJobResult& WithDatasetImportJobArn(const char* value) { SetDatasetImportJobArn(value); return *this;}
private:
Aws::String m_datasetImportJobArn;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,575 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/Domain.h>
#include <aws/forecast/model/DatasetType.h>
#include <aws/forecast/model/Schema.h>
#include <aws/forecast/model/EncryptionConfig.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Tag.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API CreateDatasetRequest : public ForecastServiceRequest
{
public:
CreateDatasetRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A name for the dataset.</p>
*/
inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
/**
* <p>A name for the dataset.</p>
*/
inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
/**
* <p>A name for the dataset.</p>
*/
inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
/**
* <p>A name for the dataset.</p>
*/
inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
/**
* <p>A name for the dataset.</p>
*/
inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
/**
* <p>A name for the dataset.</p>
*/
inline CreateDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
/**
* <p>A name for the dataset.</p>
*/
inline CreateDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
/**
* <p>A name for the dataset.</p>
*/
inline CreateDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
/**
* <p>The domain associated with the dataset. When you add a dataset to a dataset
* group, this value and the value specified for the <code>Domain</code> parameter
* of the <a>CreateDatasetGroup</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in the training data that you import to the dataset.
* For example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires <code>item_id</code>, <code>timestamp</code>, and <code>demand</code>
* fields to be present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline const Domain& GetDomain() const{ return m_domain; }
/**
* <p>The domain associated with the dataset. When you add a dataset to a dataset
* group, this value and the value specified for the <code>Domain</code> parameter
* of the <a>CreateDatasetGroup</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in the training data that you import to the dataset.
* For example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires <code>item_id</code>, <code>timestamp</code>, and <code>demand</code>
* fields to be present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
/**
* <p>The domain associated with the dataset. When you add a dataset to a dataset
* group, this value and the value specified for the <code>Domain</code> parameter
* of the <a>CreateDatasetGroup</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in the training data that you import to the dataset.
* For example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires <code>item_id</code>, <code>timestamp</code>, and <code>demand</code>
* fields to be present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
/**
* <p>The domain associated with the dataset. When you add a dataset to a dataset
* group, this value and the value specified for the <code>Domain</code> parameter
* of the <a>CreateDatasetGroup</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in the training data that you import to the dataset.
* For example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires <code>item_id</code>, <code>timestamp</code>, and <code>demand</code>
* fields to be present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
/**
* <p>The domain associated with the dataset. When you add a dataset to a dataset
* group, this value and the value specified for the <code>Domain</code> parameter
* of the <a>CreateDatasetGroup</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in the training data that you import to the dataset.
* For example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires <code>item_id</code>, <code>timestamp</code>, and <code>demand</code>
* fields to be present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline CreateDatasetRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;}
/**
* <p>The domain associated with the dataset. When you add a dataset to a dataset
* group, this value and the value specified for the <code>Domain</code> parameter
* of the <a>CreateDatasetGroup</a> operation must match.</p> <p>The
* <code>Domain</code> and <code>DatasetType</code> that you choose determine the
* fields that must be present in the training data that you import to the dataset.
* For example, if you choose the <code>RETAIL</code> domain and
* <code>TARGET_TIME_SERIES</code> as the <code>DatasetType</code>, Amazon Forecast
* requires <code>item_id</code>, <code>timestamp</code>, and <code>demand</code>
* fields to be present in your data. For more information, see
* <a>howitworks-datasets-groups</a>.</p>
*/
inline CreateDatasetRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>The dataset type. Valid values depend on the chosen <code>Domain</code>.</p>
*/
inline const DatasetType& GetDatasetType() const{ return m_datasetType; }
/**
* <p>The dataset type. Valid values depend on the chosen <code>Domain</code>.</p>
*/
inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
/**
* <p>The dataset type. Valid values depend on the chosen <code>Domain</code>.</p>
*/
inline void SetDatasetType(const DatasetType& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
/**
* <p>The dataset type. Valid values depend on the chosen <code>Domain</code>.</p>
*/
inline void SetDatasetType(DatasetType&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); }
/**
* <p>The dataset type. Valid values depend on the chosen <code>Domain</code>.</p>
*/
inline CreateDatasetRequest& WithDatasetType(const DatasetType& value) { SetDatasetType(value); return *this;}
/**
* <p>The dataset type. Valid values depend on the chosen <code>Domain</code>.</p>
*/
inline CreateDatasetRequest& WithDatasetType(DatasetType&& value) { SetDatasetType(std::move(value)); return *this;}
/**
* <p>The frequency of data collection. This parameter is required for
* RELATED_TIME_SERIES datasets.</p> <p>Valid intervals are Y (Year), M (Month), W
* (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10
* minutes), 5min (5 minutes), and 1min (1 minute). For example, "D" indicates
* every day and "15min" indicates every 15 minutes.</p>
*/
inline const Aws::String& GetDataFrequency() const{ return m_dataFrequency; }
/**
* <p>The frequency of data collection. This parameter is required for
* RELATED_TIME_SERIES datasets.</p> <p>Valid intervals are Y (Year), M (Month), W
* (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10
* minutes), 5min (5 minutes), and 1min (1 minute). For example, "D" indicates
* every day and "15min" indicates every 15 minutes.</p>
*/
inline bool DataFrequencyHasBeenSet() const { return m_dataFrequencyHasBeenSet; }
/**
* <p>The frequency of data collection. This parameter is required for
* RELATED_TIME_SERIES datasets.</p> <p>Valid intervals are Y (Year), M (Month), W
* (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10
* minutes), 5min (5 minutes), and 1min (1 minute). For example, "D" indicates
* every day and "15min" indicates every 15 minutes.</p>
*/
inline void SetDataFrequency(const Aws::String& value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency = value; }
/**
* <p>The frequency of data collection. This parameter is required for
* RELATED_TIME_SERIES datasets.</p> <p>Valid intervals are Y (Year), M (Month), W
* (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10
* minutes), 5min (5 minutes), and 1min (1 minute). For example, "D" indicates
* every day and "15min" indicates every 15 minutes.</p>
*/
inline void SetDataFrequency(Aws::String&& value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency = std::move(value); }
/**
* <p>The frequency of data collection. This parameter is required for
* RELATED_TIME_SERIES datasets.</p> <p>Valid intervals are Y (Year), M (Month), W
* (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10
* minutes), 5min (5 minutes), and 1min (1 minute). For example, "D" indicates
* every day and "15min" indicates every 15 minutes.</p>
*/
inline void SetDataFrequency(const char* value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency.assign(value); }
/**
* <p>The frequency of data collection. This parameter is required for
* RELATED_TIME_SERIES datasets.</p> <p>Valid intervals are Y (Year), M (Month), W
* (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10
* minutes), 5min (5 minutes), and 1min (1 minute). For example, "D" indicates
* every day and "15min" indicates every 15 minutes.</p>
*/
inline CreateDatasetRequest& WithDataFrequency(const Aws::String& value) { SetDataFrequency(value); return *this;}
/**
* <p>The frequency of data collection. This parameter is required for
* RELATED_TIME_SERIES datasets.</p> <p>Valid intervals are Y (Year), M (Month), W
* (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10
* minutes), 5min (5 minutes), and 1min (1 minute). For example, "D" indicates
* every day and "15min" indicates every 15 minutes.</p>
*/
inline CreateDatasetRequest& WithDataFrequency(Aws::String&& value) { SetDataFrequency(std::move(value)); return *this;}
/**
* <p>The frequency of data collection. This parameter is required for
* RELATED_TIME_SERIES datasets.</p> <p>Valid intervals are Y (Year), M (Month), W
* (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10
* minutes), 5min (5 minutes), and 1min (1 minute). For example, "D" indicates
* every day and "15min" indicates every 15 minutes.</p>
*/
inline CreateDatasetRequest& WithDataFrequency(const char* value) { SetDataFrequency(value); return *this;}
/**
* <p>The schema for the dataset. The schema attributes and their order must match
* the fields in your data. The dataset <code>Domain</code> and
* <code>DatasetType</code> that you choose determine the minimum required fields
* in your training data. For information about the required fields for a specific
* dataset domain and type, see <a>howitworks-domains-ds-types</a>.</p>
*/
inline const Schema& GetSchema() const{ return m_schema; }
/**
* <p>The schema for the dataset. The schema attributes and their order must match
* the fields in your data. The dataset <code>Domain</code> and
* <code>DatasetType</code> that you choose determine the minimum required fields
* in your training data. For information about the required fields for a specific
* dataset domain and type, see <a>howitworks-domains-ds-types</a>.</p>
*/
inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
/**
* <p>The schema for the dataset. The schema attributes and their order must match
* the fields in your data. The dataset <code>Domain</code> and
* <code>DatasetType</code> that you choose determine the minimum required fields
* in your training data. For information about the required fields for a specific
* dataset domain and type, see <a>howitworks-domains-ds-types</a>.</p>
*/
inline void SetSchema(const Schema& value) { m_schemaHasBeenSet = true; m_schema = value; }
/**
* <p>The schema for the dataset. The schema attributes and their order must match
* the fields in your data. The dataset <code>Domain</code> and
* <code>DatasetType</code> that you choose determine the minimum required fields
* in your training data. For information about the required fields for a specific
* dataset domain and type, see <a>howitworks-domains-ds-types</a>.</p>
*/
inline void SetSchema(Schema&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
/**
* <p>The schema for the dataset. The schema attributes and their order must match
* the fields in your data. The dataset <code>Domain</code> and
* <code>DatasetType</code> that you choose determine the minimum required fields
* in your training data. For information about the required fields for a specific
* dataset domain and type, see <a>howitworks-domains-ds-types</a>.</p>
*/
inline CreateDatasetRequest& WithSchema(const Schema& value) { SetSchema(value); return *this;}
/**
* <p>The schema for the dataset. The schema attributes and their order must match
* the fields in your data. The dataset <code>Domain</code> and
* <code>DatasetType</code> that you choose determine the minimum required fields
* in your training data. For information about the required fields for a specific
* dataset domain and type, see <a>howitworks-domains-ds-types</a>.</p>
*/
inline CreateDatasetRequest& WithSchema(Schema&& value) { SetSchema(std::move(value)); return *this;}
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline CreateDatasetRequest& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;}
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline CreateDatasetRequest& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the dataset to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The optional metadata that you apply to the dataset to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The optional metadata that you apply to the dataset to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The optional metadata that you apply to the dataset to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The optional metadata that you apply to the dataset to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The optional metadata that you apply to the dataset to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the dataset to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The optional metadata that you apply to the dataset to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateDatasetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_datasetName;
bool m_datasetNameHasBeenSet;
Domain m_domain;
bool m_domainHasBeenSet;
DatasetType m_datasetType;
bool m_datasetTypeHasBeenSet;
Aws::String m_dataFrequency;
bool m_dataFrequencyHasBeenSet;
Schema m_schema;
bool m_schemaHasBeenSet;
EncryptionConfig m_encryptionConfig;
bool m_encryptionConfigHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API CreateDatasetResult
{
public:
CreateDatasetResult();
CreateDatasetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDatasetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(const Aws::String& value) { m_datasetArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(Aws::String&& value) { m_datasetArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(const char* value) { m_datasetArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline CreateDatasetResult& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline CreateDatasetResult& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline CreateDatasetResult& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
private:
Aws::String m_datasetArn;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,384 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DataDestination.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Tag.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API CreateForecastExportJobRequest : public ForecastServiceRequest
{
public:
CreateForecastExportJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateForecastExportJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name for the forecast export job.</p>
*/
inline const Aws::String& GetForecastExportJobName() const{ return m_forecastExportJobName; }
/**
* <p>The name for the forecast export job.</p>
*/
inline bool ForecastExportJobNameHasBeenSet() const { return m_forecastExportJobNameHasBeenSet; }
/**
* <p>The name for the forecast export job.</p>
*/
inline void SetForecastExportJobName(const Aws::String& value) { m_forecastExportJobNameHasBeenSet = true; m_forecastExportJobName = value; }
/**
* <p>The name for the forecast export job.</p>
*/
inline void SetForecastExportJobName(Aws::String&& value) { m_forecastExportJobNameHasBeenSet = true; m_forecastExportJobName = std::move(value); }
/**
* <p>The name for the forecast export job.</p>
*/
inline void SetForecastExportJobName(const char* value) { m_forecastExportJobNameHasBeenSet = true; m_forecastExportJobName.assign(value); }
/**
* <p>The name for the forecast export job.</p>
*/
inline CreateForecastExportJobRequest& WithForecastExportJobName(const Aws::String& value) { SetForecastExportJobName(value); return *this;}
/**
* <p>The name for the forecast export job.</p>
*/
inline CreateForecastExportJobRequest& WithForecastExportJobName(Aws::String&& value) { SetForecastExportJobName(std::move(value)); return *this;}
/**
* <p>The name for the forecast export job.</p>
*/
inline CreateForecastExportJobRequest& WithForecastExportJobName(const char* value) { SetForecastExportJobName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast that you want to export.</p>
*/
inline const Aws::String& GetForecastArn() const{ return m_forecastArn; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast that you want to export.</p>
*/
inline bool ForecastArnHasBeenSet() const { return m_forecastArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast that you want to export.</p>
*/
inline void SetForecastArn(const Aws::String& value) { m_forecastArnHasBeenSet = true; m_forecastArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast that you want to export.</p>
*/
inline void SetForecastArn(Aws::String&& value) { m_forecastArnHasBeenSet = true; m_forecastArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast that you want to export.</p>
*/
inline void SetForecastArn(const char* value) { m_forecastArnHasBeenSet = true; m_forecastArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast that you want to export.</p>
*/
inline CreateForecastExportJobRequest& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast that you want to export.</p>
*/
inline CreateForecastExportJobRequest& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast that you want to export.</p>
*/
inline CreateForecastExportJobRequest& WithForecastArn(const char* value) { SetForecastArn(value); return *this;}
/**
* <p>The location where you want to save the forecast and an AWS Identity and
* Access Management (IAM) role that Amazon Forecast can assume to access the
* location. The forecast must be exported to an Amazon S3 bucket.</p> <p>If
* encryption is used, <code>Destination</code> must include an AWS Key Management
* Service (KMS) key. The IAM role must allow Amazon Forecast permission to access
* the key.</p>
*/
inline const DataDestination& GetDestination() const{ return m_destination; }
/**
* <p>The location where you want to save the forecast and an AWS Identity and
* Access Management (IAM) role that Amazon Forecast can assume to access the
* location. The forecast must be exported to an Amazon S3 bucket.</p> <p>If
* encryption is used, <code>Destination</code> must include an AWS Key Management
* Service (KMS) key. The IAM role must allow Amazon Forecast permission to access
* the key.</p>
*/
inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
/**
* <p>The location where you want to save the forecast and an AWS Identity and
* Access Management (IAM) role that Amazon Forecast can assume to access the
* location. The forecast must be exported to an Amazon S3 bucket.</p> <p>If
* encryption is used, <code>Destination</code> must include an AWS Key Management
* Service (KMS) key. The IAM role must allow Amazon Forecast permission to access
* the key.</p>
*/
inline void SetDestination(const DataDestination& value) { m_destinationHasBeenSet = true; m_destination = value; }
/**
* <p>The location where you want to save the forecast and an AWS Identity and
* Access Management (IAM) role that Amazon Forecast can assume to access the
* location. The forecast must be exported to an Amazon S3 bucket.</p> <p>If
* encryption is used, <code>Destination</code> must include an AWS Key Management
* Service (KMS) key. The IAM role must allow Amazon Forecast permission to access
* the key.</p>
*/
inline void SetDestination(DataDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
/**
* <p>The location where you want to save the forecast and an AWS Identity and
* Access Management (IAM) role that Amazon Forecast can assume to access the
* location. The forecast must be exported to an Amazon S3 bucket.</p> <p>If
* encryption is used, <code>Destination</code> must include an AWS Key Management
* Service (KMS) key. The IAM role must allow Amazon Forecast permission to access
* the key.</p>
*/
inline CreateForecastExportJobRequest& WithDestination(const DataDestination& value) { SetDestination(value); return *this;}
/**
* <p>The location where you want to save the forecast and an AWS Identity and
* Access Management (IAM) role that Amazon Forecast can assume to access the
* location. The forecast must be exported to an Amazon S3 bucket.</p> <p>If
* encryption is used, <code>Destination</code> must include an AWS Key Management
* Service (KMS) key. The IAM role must allow Amazon Forecast permission to access
* the key.</p>
*/
inline CreateForecastExportJobRequest& WithDestination(DataDestination&& value) { SetDestination(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the forecast export job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The optional metadata that you apply to the forecast export job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The optional metadata that you apply to the forecast export job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The optional metadata that you apply to the forecast export job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The optional metadata that you apply to the forecast export job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateForecastExportJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The optional metadata that you apply to the forecast export job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateForecastExportJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the forecast export job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateForecastExportJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The optional metadata that you apply to the forecast export job to help you
* categorize and organize them. Each tag consists of a key and an optional value,
* both of which you define.</p> <p>The following basic restrictions apply to
* tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li>
* <p>For each resource, each tag key must be unique, and each tag key can have
* only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateForecastExportJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_forecastExportJobName;
bool m_forecastExportJobNameHasBeenSet;
Aws::String m_forecastArn;
bool m_forecastArnHasBeenSet;
DataDestination m_destination;
bool m_destinationHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API CreateForecastExportJobResult
{
public:
CreateForecastExportJobResult();
CreateForecastExportJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateForecastExportJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the export job.</p>
*/
inline const Aws::String& GetForecastExportJobArn() const{ return m_forecastExportJobArn; }
/**
* <p>The Amazon Resource Name (ARN) of the export job.</p>
*/
inline void SetForecastExportJobArn(const Aws::String& value) { m_forecastExportJobArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the export job.</p>
*/
inline void SetForecastExportJobArn(Aws::String&& value) { m_forecastExportJobArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the export job.</p>
*/
inline void SetForecastExportJobArn(const char* value) { m_forecastExportJobArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the export job.</p>
*/
inline CreateForecastExportJobResult& WithForecastExportJobArn(const Aws::String& value) { SetForecastExportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the export job.</p>
*/
inline CreateForecastExportJobResult& WithForecastExportJobArn(Aws::String&& value) { SetForecastExportJobArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the export job.</p>
*/
inline CreateForecastExportJobResult& WithForecastExportJobArn(const char* value) { SetForecastExportJobArn(value); return *this;}
private:
Aws::String m_forecastExportJobArn;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,421 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Tag.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API CreateForecastRequest : public ForecastServiceRequest
{
public:
CreateForecastRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateForecast"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A name for the forecast.</p>
*/
inline const Aws::String& GetForecastName() const{ return m_forecastName; }
/**
* <p>A name for the forecast.</p>
*/
inline bool ForecastNameHasBeenSet() const { return m_forecastNameHasBeenSet; }
/**
* <p>A name for the forecast.</p>
*/
inline void SetForecastName(const Aws::String& value) { m_forecastNameHasBeenSet = true; m_forecastName = value; }
/**
* <p>A name for the forecast.</p>
*/
inline void SetForecastName(Aws::String&& value) { m_forecastNameHasBeenSet = true; m_forecastName = std::move(value); }
/**
* <p>A name for the forecast.</p>
*/
inline void SetForecastName(const char* value) { m_forecastNameHasBeenSet = true; m_forecastName.assign(value); }
/**
* <p>A name for the forecast.</p>
*/
inline CreateForecastRequest& WithForecastName(const Aws::String& value) { SetForecastName(value); return *this;}
/**
* <p>A name for the forecast.</p>
*/
inline CreateForecastRequest& WithForecastName(Aws::String&& value) { SetForecastName(std::move(value)); return *this;}
/**
* <p>A name for the forecast.</p>
*/
inline CreateForecastRequest& WithForecastName(const char* value) { SetForecastName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor to use to generate the
* forecast.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to use to generate the
* forecast.</p>
*/
inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to use to generate the
* forecast.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to use to generate the
* forecast.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to use to generate the
* forecast.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to use to generate the
* forecast.</p>
*/
inline CreateForecastRequest& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor to use to generate the
* forecast.</p>
*/
inline CreateForecastRequest& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor to use to generate the
* forecast.</p>
*/
inline CreateForecastRequest& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline const Aws::Vector<Aws::String>& GetForecastTypes() const{ return m_forecastTypes; }
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline bool ForecastTypesHasBeenSet() const { return m_forecastTypesHasBeenSet; }
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline void SetForecastTypes(const Aws::Vector<Aws::String>& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = value; }
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline void SetForecastTypes(Aws::Vector<Aws::String>&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes = std::move(value); }
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline CreateForecastRequest& WithForecastTypes(const Aws::Vector<Aws::String>& value) { SetForecastTypes(value); return *this;}
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline CreateForecastRequest& WithForecastTypes(Aws::Vector<Aws::String>&& value) { SetForecastTypes(std::move(value)); return *this;}
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline CreateForecastRequest& AddForecastTypes(const Aws::String& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline CreateForecastRequest& AddForecastTypes(Aws::String&& value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(std::move(value)); return *this; }
/**
* <p>The quantiles at which probabilistic forecasts are generated. <b>You can
* currently specify up to 5 quantiles per forecast</b>. Accepted values include
* <code>0.01 to 0.99</code> (increments of .01 only) and <code>mean</code>. The
* mean forecast is different from the median (0.50) when the distribution is not
* symmetric (for example, Beta and Negative Binomial). The default value is
* <code>["0.1", "0.5", "0.9"]</code>.</p>
*/
inline CreateForecastRequest& AddForecastTypes(const char* value) { m_forecastTypesHasBeenSet = true; m_forecastTypes.push_back(value); return *this; }
/**
* <p>The optional metadata that you apply to the forecast to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The optional metadata that you apply to the forecast to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The optional metadata that you apply to the forecast to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The optional metadata that you apply to the forecast to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The optional metadata that you apply to the forecast to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateForecastRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The optional metadata that you apply to the forecast to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateForecastRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the forecast to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateForecastRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The optional metadata that you apply to the forecast to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreateForecastRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_forecastName;
bool m_forecastNameHasBeenSet;
Aws::String m_predictorArn;
bool m_predictorArnHasBeenSet;
Aws::Vector<Aws::String> m_forecastTypes;
bool m_forecastTypesHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API CreateForecastResult
{
public:
CreateForecastResult();
CreateForecastResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateForecastResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline const Aws::String& GetForecastArn() const{ return m_forecastArn; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline void SetForecastArn(const Aws::String& value) { m_forecastArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline void SetForecastArn(Aws::String&& value) { m_forecastArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline void SetForecastArn(const char* value) { m_forecastArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline CreateForecastResult& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline CreateForecastResult& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline CreateForecastResult& WithForecastArn(const char* value) { SetForecastArn(value); return *this;}
private:
Aws::String m_forecastArn;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,874 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/forecast/model/EvaluationParameters.h>
#include <aws/forecast/model/HyperParameterTuningJobConfig.h>
#include <aws/forecast/model/InputDataConfig.h>
#include <aws/forecast/model/FeaturizationConfig.h>
#include <aws/forecast/model/EncryptionConfig.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Tag.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API CreatePredictorRequest : public ForecastServiceRequest
{
public:
CreatePredictorRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreatePredictor"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A name for the predictor.</p>
*/
inline const Aws::String& GetPredictorName() const{ return m_predictorName; }
/**
* <p>A name for the predictor.</p>
*/
inline bool PredictorNameHasBeenSet() const { return m_predictorNameHasBeenSet; }
/**
* <p>A name for the predictor.</p>
*/
inline void SetPredictorName(const Aws::String& value) { m_predictorNameHasBeenSet = true; m_predictorName = value; }
/**
* <p>A name for the predictor.</p>
*/
inline void SetPredictorName(Aws::String&& value) { m_predictorNameHasBeenSet = true; m_predictorName = std::move(value); }
/**
* <p>A name for the predictor.</p>
*/
inline void SetPredictorName(const char* value) { m_predictorNameHasBeenSet = true; m_predictorName.assign(value); }
/**
* <p>A name for the predictor.</p>
*/
inline CreatePredictorRequest& WithPredictorName(const Aws::String& value) { SetPredictorName(value); return *this;}
/**
* <p>A name for the predictor.</p>
*/
inline CreatePredictorRequest& WithPredictorName(Aws::String&& value) { SetPredictorName(std::move(value)); return *this;}
/**
* <p>A name for the predictor.</p>
*/
inline CreatePredictorRequest& WithPredictorName(const char* value) { SetPredictorName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the algorithm to use for model training.
* Required if <code>PerformAutoML</code> is not set to <code>true</code>.</p> <p
* class="title"> <b>Supported algorithms:</b> </p> <ul> <li> <p>
* <code>arn:aws:forecast:::algorithm/ARIMA</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Deep_AR_Plus</code> </p> <p>Supports
* hyperparameter optimization (HPO)</p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/ETS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/NPTS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Prophet</code> </p> </li> </ul>
*/
inline const Aws::String& GetAlgorithmArn() const{ return m_algorithmArn; }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm to use for model training.
* Required if <code>PerformAutoML</code> is not set to <code>true</code>.</p> <p
* class="title"> <b>Supported algorithms:</b> </p> <ul> <li> <p>
* <code>arn:aws:forecast:::algorithm/ARIMA</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Deep_AR_Plus</code> </p> <p>Supports
* hyperparameter optimization (HPO)</p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/ETS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/NPTS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Prophet</code> </p> </li> </ul>
*/
inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm to use for model training.
* Required if <code>PerformAutoML</code> is not set to <code>true</code>.</p> <p
* class="title"> <b>Supported algorithms:</b> </p> <ul> <li> <p>
* <code>arn:aws:forecast:::algorithm/ARIMA</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Deep_AR_Plus</code> </p> <p>Supports
* hyperparameter optimization (HPO)</p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/ETS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/NPTS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Prophet</code> </p> </li> </ul>
*/
inline void SetAlgorithmArn(const Aws::String& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm to use for model training.
* Required if <code>PerformAutoML</code> is not set to <code>true</code>.</p> <p
* class="title"> <b>Supported algorithms:</b> </p> <ul> <li> <p>
* <code>arn:aws:forecast:::algorithm/ARIMA</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Deep_AR_Plus</code> </p> <p>Supports
* hyperparameter optimization (HPO)</p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/ETS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/NPTS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Prophet</code> </p> </li> </ul>
*/
inline void SetAlgorithmArn(Aws::String&& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm to use for model training.
* Required if <code>PerformAutoML</code> is not set to <code>true</code>.</p> <p
* class="title"> <b>Supported algorithms:</b> </p> <ul> <li> <p>
* <code>arn:aws:forecast:::algorithm/ARIMA</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Deep_AR_Plus</code> </p> <p>Supports
* hyperparameter optimization (HPO)</p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/ETS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/NPTS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Prophet</code> </p> </li> </ul>
*/
inline void SetAlgorithmArn(const char* value) { m_algorithmArnHasBeenSet = true; m_algorithmArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm to use for model training.
* Required if <code>PerformAutoML</code> is not set to <code>true</code>.</p> <p
* class="title"> <b>Supported algorithms:</b> </p> <ul> <li> <p>
* <code>arn:aws:forecast:::algorithm/ARIMA</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Deep_AR_Plus</code> </p> <p>Supports
* hyperparameter optimization (HPO)</p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/ETS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/NPTS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Prophet</code> </p> </li> </ul>
*/
inline CreatePredictorRequest& WithAlgorithmArn(const Aws::String& value) { SetAlgorithmArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the algorithm to use for model training.
* Required if <code>PerformAutoML</code> is not set to <code>true</code>.</p> <p
* class="title"> <b>Supported algorithms:</b> </p> <ul> <li> <p>
* <code>arn:aws:forecast:::algorithm/ARIMA</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Deep_AR_Plus</code> </p> <p>Supports
* hyperparameter optimization (HPO)</p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/ETS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/NPTS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Prophet</code> </p> </li> </ul>
*/
inline CreatePredictorRequest& WithAlgorithmArn(Aws::String&& value) { SetAlgorithmArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the algorithm to use for model training.
* Required if <code>PerformAutoML</code> is not set to <code>true</code>.</p> <p
* class="title"> <b>Supported algorithms:</b> </p> <ul> <li> <p>
* <code>arn:aws:forecast:::algorithm/ARIMA</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Deep_AR_Plus</code> </p> <p>Supports
* hyperparameter optimization (HPO)</p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/ETS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/NPTS</code> </p> </li> <li> <p>
* <code>arn:aws:forecast:::algorithm/Prophet</code> </p> </li> </ul>
*/
inline CreatePredictorRequest& WithAlgorithmArn(const char* value) { SetAlgorithmArn(value); return *this;}
/**
* <p>Specifies the number of time-steps that the model is trained to predict. The
* forecast horizon is also called the prediction length.</p> <p>For example, if
* you configure a dataset for daily data collection (using the
* <code>DataFrequency</code> parameter of the <a>CreateDataset</a> operation) and
* set the forecast horizon to 10, the model returns predictions for 10 days.</p>
* <p>The maximum forecast horizon is the lesser of 500 time-steps or 1/3 of the
* TARGET_TIME_SERIES dataset length.</p>
*/
inline int GetForecastHorizon() const{ return m_forecastHorizon; }
/**
* <p>Specifies the number of time-steps that the model is trained to predict. The
* forecast horizon is also called the prediction length.</p> <p>For example, if
* you configure a dataset for daily data collection (using the
* <code>DataFrequency</code> parameter of the <a>CreateDataset</a> operation) and
* set the forecast horizon to 10, the model returns predictions for 10 days.</p>
* <p>The maximum forecast horizon is the lesser of 500 time-steps or 1/3 of the
* TARGET_TIME_SERIES dataset length.</p>
*/
inline bool ForecastHorizonHasBeenSet() const { return m_forecastHorizonHasBeenSet; }
/**
* <p>Specifies the number of time-steps that the model is trained to predict. The
* forecast horizon is also called the prediction length.</p> <p>For example, if
* you configure a dataset for daily data collection (using the
* <code>DataFrequency</code> parameter of the <a>CreateDataset</a> operation) and
* set the forecast horizon to 10, the model returns predictions for 10 days.</p>
* <p>The maximum forecast horizon is the lesser of 500 time-steps or 1/3 of the
* TARGET_TIME_SERIES dataset length.</p>
*/
inline void SetForecastHorizon(int value) { m_forecastHorizonHasBeenSet = true; m_forecastHorizon = value; }
/**
* <p>Specifies the number of time-steps that the model is trained to predict. The
* forecast horizon is also called the prediction length.</p> <p>For example, if
* you configure a dataset for daily data collection (using the
* <code>DataFrequency</code> parameter of the <a>CreateDataset</a> operation) and
* set the forecast horizon to 10, the model returns predictions for 10 days.</p>
* <p>The maximum forecast horizon is the lesser of 500 time-steps or 1/3 of the
* TARGET_TIME_SERIES dataset length.</p>
*/
inline CreatePredictorRequest& WithForecastHorizon(int value) { SetForecastHorizon(value); return *this;}
/**
* <p>Whether to perform AutoML. When Amazon Forecast performs AutoML, it evaluates
* the algorithms it provides and chooses the best algorithm and configuration for
* your training dataset.</p> <p>The default value is <code>false</code>. In this
* case, you are required to specify an algorithm.</p> <p>Set
* <code>PerformAutoML</code> to <code>true</code> to have Amazon Forecast perform
* AutoML. This is a good option if you aren't sure which algorithm is suitable for
* your training data. In this case, <code>PerformHPO</code> must be false.</p>
*/
inline bool GetPerformAutoML() const{ return m_performAutoML; }
/**
* <p>Whether to perform AutoML. When Amazon Forecast performs AutoML, it evaluates
* the algorithms it provides and chooses the best algorithm and configuration for
* your training dataset.</p> <p>The default value is <code>false</code>. In this
* case, you are required to specify an algorithm.</p> <p>Set
* <code>PerformAutoML</code> to <code>true</code> to have Amazon Forecast perform
* AutoML. This is a good option if you aren't sure which algorithm is suitable for
* your training data. In this case, <code>PerformHPO</code> must be false.</p>
*/
inline bool PerformAutoMLHasBeenSet() const { return m_performAutoMLHasBeenSet; }
/**
* <p>Whether to perform AutoML. When Amazon Forecast performs AutoML, it evaluates
* the algorithms it provides and chooses the best algorithm and configuration for
* your training dataset.</p> <p>The default value is <code>false</code>. In this
* case, you are required to specify an algorithm.</p> <p>Set
* <code>PerformAutoML</code> to <code>true</code> to have Amazon Forecast perform
* AutoML. This is a good option if you aren't sure which algorithm is suitable for
* your training data. In this case, <code>PerformHPO</code> must be false.</p>
*/
inline void SetPerformAutoML(bool value) { m_performAutoMLHasBeenSet = true; m_performAutoML = value; }
/**
* <p>Whether to perform AutoML. When Amazon Forecast performs AutoML, it evaluates
* the algorithms it provides and chooses the best algorithm and configuration for
* your training dataset.</p> <p>The default value is <code>false</code>. In this
* case, you are required to specify an algorithm.</p> <p>Set
* <code>PerformAutoML</code> to <code>true</code> to have Amazon Forecast perform
* AutoML. This is a good option if you aren't sure which algorithm is suitable for
* your training data. In this case, <code>PerformHPO</code> must be false.</p>
*/
inline CreatePredictorRequest& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
/**
* <p>Whether to perform hyperparameter optimization (HPO). HPO finds optimal
* hyperparameter values for your training data. The process of performing HPO is
* known as running a hyperparameter tuning job.</p> <p>The default value is
* <code>false</code>. In this case, Amazon Forecast uses default hyperparameter
* values from the chosen algorithm.</p> <p>To override the default values, set
* <code>PerformHPO</code> to <code>true</code> and, optionally, supply the
* <a>HyperParameterTuningJobConfig</a> object. The tuning job specifies a metric
* to optimize, which hyperparameters participate in tuning, and the valid range
* for each tunable hyperparameter. In this case, you are required to specify an
* algorithm and <code>PerformAutoML</code> must be false.</p> <p>The following
* algorithm supports HPO:</p> <ul> <li> <p>DeepAR+</p> </li> </ul>
*/
inline bool GetPerformHPO() const{ return m_performHPO; }
/**
* <p>Whether to perform hyperparameter optimization (HPO). HPO finds optimal
* hyperparameter values for your training data. The process of performing HPO is
* known as running a hyperparameter tuning job.</p> <p>The default value is
* <code>false</code>. In this case, Amazon Forecast uses default hyperparameter
* values from the chosen algorithm.</p> <p>To override the default values, set
* <code>PerformHPO</code> to <code>true</code> and, optionally, supply the
* <a>HyperParameterTuningJobConfig</a> object. The tuning job specifies a metric
* to optimize, which hyperparameters participate in tuning, and the valid range
* for each tunable hyperparameter. In this case, you are required to specify an
* algorithm and <code>PerformAutoML</code> must be false.</p> <p>The following
* algorithm supports HPO:</p> <ul> <li> <p>DeepAR+</p> </li> </ul>
*/
inline bool PerformHPOHasBeenSet() const { return m_performHPOHasBeenSet; }
/**
* <p>Whether to perform hyperparameter optimization (HPO). HPO finds optimal
* hyperparameter values for your training data. The process of performing HPO is
* known as running a hyperparameter tuning job.</p> <p>The default value is
* <code>false</code>. In this case, Amazon Forecast uses default hyperparameter
* values from the chosen algorithm.</p> <p>To override the default values, set
* <code>PerformHPO</code> to <code>true</code> and, optionally, supply the
* <a>HyperParameterTuningJobConfig</a> object. The tuning job specifies a metric
* to optimize, which hyperparameters participate in tuning, and the valid range
* for each tunable hyperparameter. In this case, you are required to specify an
* algorithm and <code>PerformAutoML</code> must be false.</p> <p>The following
* algorithm supports HPO:</p> <ul> <li> <p>DeepAR+</p> </li> </ul>
*/
inline void SetPerformHPO(bool value) { m_performHPOHasBeenSet = true; m_performHPO = value; }
/**
* <p>Whether to perform hyperparameter optimization (HPO). HPO finds optimal
* hyperparameter values for your training data. The process of performing HPO is
* known as running a hyperparameter tuning job.</p> <p>The default value is
* <code>false</code>. In this case, Amazon Forecast uses default hyperparameter
* values from the chosen algorithm.</p> <p>To override the default values, set
* <code>PerformHPO</code> to <code>true</code> and, optionally, supply the
* <a>HyperParameterTuningJobConfig</a> object. The tuning job specifies a metric
* to optimize, which hyperparameters participate in tuning, and the valid range
* for each tunable hyperparameter. In this case, you are required to specify an
* algorithm and <code>PerformAutoML</code> must be false.</p> <p>The following
* algorithm supports HPO:</p> <ul> <li> <p>DeepAR+</p> </li> </ul>
*/
inline CreatePredictorRequest& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const{ return m_trainingParameters; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline bool TrainingParametersHasBeenSet() const { return m_trainingParametersHasBeenSet; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline void SetTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = value; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline void SetTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = std::move(value); }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& WithTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetTrainingParameters(value); return *this;}
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& WithTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetTrainingParameters(std::move(value)); return *this;}
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& AddTrainingParameters(const Aws::String& key, const Aws::String& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(key, value); return *this; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& AddTrainingParameters(Aws::String&& key, const Aws::String& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& AddTrainingParameters(const Aws::String& key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& AddTrainingParameters(Aws::String&& key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& AddTrainingParameters(const char* key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& AddTrainingParameters(Aws::String&& key, const char* value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The hyperparameters to override for model training. The hyperparameters that
* you can override are listed in the individual algorithms. For the list of
* supported algorithms, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline CreatePredictorRequest& AddTrainingParameters(const char* key, const char* value) { m_trainingParametersHasBeenSet = true; m_trainingParameters.emplace(key, value); return *this; }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline const EvaluationParameters& GetEvaluationParameters() const{ return m_evaluationParameters; }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline bool EvaluationParametersHasBeenSet() const { return m_evaluationParametersHasBeenSet; }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline void SetEvaluationParameters(const EvaluationParameters& value) { m_evaluationParametersHasBeenSet = true; m_evaluationParameters = value; }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline void SetEvaluationParameters(EvaluationParameters&& value) { m_evaluationParametersHasBeenSet = true; m_evaluationParameters = std::move(value); }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline CreatePredictorRequest& WithEvaluationParameters(const EvaluationParameters& value) { SetEvaluationParameters(value); return *this;}
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline CreatePredictorRequest& WithEvaluationParameters(EvaluationParameters&& value) { SetEvaluationParameters(std::move(value)); return *this;}
/**
* <p>Provides hyperparameter override values for the algorithm. If you don't
* provide this parameter, Amazon Forecast uses default values. The individual
* algorithms specify which hyperparameters support hyperparameter optimization
* (HPO). For more information, see <a>aws-forecast-choosing-recipes</a>.</p> <p>If
* you included the <code>HPOConfig</code> object, you must set
* <code>PerformHPO</code> to true.</p>
*/
inline const HyperParameterTuningJobConfig& GetHPOConfig() const{ return m_hPOConfig; }
/**
* <p>Provides hyperparameter override values for the algorithm. If you don't
* provide this parameter, Amazon Forecast uses default values. The individual
* algorithms specify which hyperparameters support hyperparameter optimization
* (HPO). For more information, see <a>aws-forecast-choosing-recipes</a>.</p> <p>If
* you included the <code>HPOConfig</code> object, you must set
* <code>PerformHPO</code> to true.</p>
*/
inline bool HPOConfigHasBeenSet() const { return m_hPOConfigHasBeenSet; }
/**
* <p>Provides hyperparameter override values for the algorithm. If you don't
* provide this parameter, Amazon Forecast uses default values. The individual
* algorithms specify which hyperparameters support hyperparameter optimization
* (HPO). For more information, see <a>aws-forecast-choosing-recipes</a>.</p> <p>If
* you included the <code>HPOConfig</code> object, you must set
* <code>PerformHPO</code> to true.</p>
*/
inline void SetHPOConfig(const HyperParameterTuningJobConfig& value) { m_hPOConfigHasBeenSet = true; m_hPOConfig = value; }
/**
* <p>Provides hyperparameter override values for the algorithm. If you don't
* provide this parameter, Amazon Forecast uses default values. The individual
* algorithms specify which hyperparameters support hyperparameter optimization
* (HPO). For more information, see <a>aws-forecast-choosing-recipes</a>.</p> <p>If
* you included the <code>HPOConfig</code> object, you must set
* <code>PerformHPO</code> to true.</p>
*/
inline void SetHPOConfig(HyperParameterTuningJobConfig&& value) { m_hPOConfigHasBeenSet = true; m_hPOConfig = std::move(value); }
/**
* <p>Provides hyperparameter override values for the algorithm. If you don't
* provide this parameter, Amazon Forecast uses default values. The individual
* algorithms specify which hyperparameters support hyperparameter optimization
* (HPO). For more information, see <a>aws-forecast-choosing-recipes</a>.</p> <p>If
* you included the <code>HPOConfig</code> object, you must set
* <code>PerformHPO</code> to true.</p>
*/
inline CreatePredictorRequest& WithHPOConfig(const HyperParameterTuningJobConfig& value) { SetHPOConfig(value); return *this;}
/**
* <p>Provides hyperparameter override values for the algorithm. If you don't
* provide this parameter, Amazon Forecast uses default values. The individual
* algorithms specify which hyperparameters support hyperparameter optimization
* (HPO). For more information, see <a>aws-forecast-choosing-recipes</a>.</p> <p>If
* you included the <code>HPOConfig</code> object, you must set
* <code>PerformHPO</code> to true.</p>
*/
inline CreatePredictorRequest& WithHPOConfig(HyperParameterTuningJobConfig&& value) { SetHPOConfig(std::move(value)); return *this;}
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline CreatePredictorRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline CreatePredictorRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>The featurization configuration.</p>
*/
inline const FeaturizationConfig& GetFeaturizationConfig() const{ return m_featurizationConfig; }
/**
* <p>The featurization configuration.</p>
*/
inline bool FeaturizationConfigHasBeenSet() const { return m_featurizationConfigHasBeenSet; }
/**
* <p>The featurization configuration.</p>
*/
inline void SetFeaturizationConfig(const FeaturizationConfig& value) { m_featurizationConfigHasBeenSet = true; m_featurizationConfig = value; }
/**
* <p>The featurization configuration.</p>
*/
inline void SetFeaturizationConfig(FeaturizationConfig&& value) { m_featurizationConfigHasBeenSet = true; m_featurizationConfig = std::move(value); }
/**
* <p>The featurization configuration.</p>
*/
inline CreatePredictorRequest& WithFeaturizationConfig(const FeaturizationConfig& value) { SetFeaturizationConfig(value); return *this;}
/**
* <p>The featurization configuration.</p>
*/
inline CreatePredictorRequest& WithFeaturizationConfig(FeaturizationConfig&& value) { SetFeaturizationConfig(std::move(value)); return *this;}
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline CreatePredictorRequest& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;}
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline CreatePredictorRequest& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the predictor to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The optional metadata that you apply to the predictor to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The optional metadata that you apply to the predictor to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The optional metadata that you apply to the predictor to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The optional metadata that you apply to the predictor to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreatePredictorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The optional metadata that you apply to the predictor to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreatePredictorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The optional metadata that you apply to the predictor to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreatePredictorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The optional metadata that you apply to the predictor to help you categorize
* and organize them. Each tag consists of a key and an optional value, both of
* which you define.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For
* each resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul>
*/
inline CreatePredictorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_predictorName;
bool m_predictorNameHasBeenSet;
Aws::String m_algorithmArn;
bool m_algorithmArnHasBeenSet;
int m_forecastHorizon;
bool m_forecastHorizonHasBeenSet;
bool m_performAutoML;
bool m_performAutoMLHasBeenSet;
bool m_performHPO;
bool m_performHPOHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_trainingParameters;
bool m_trainingParametersHasBeenSet;
EvaluationParameters m_evaluationParameters;
bool m_evaluationParametersHasBeenSet;
HyperParameterTuningJobConfig m_hPOConfig;
bool m_hPOConfigHasBeenSet;
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
FeaturizationConfig m_featurizationConfig;
bool m_featurizationConfigHasBeenSet;
EncryptionConfig m_encryptionConfig;
bool m_encryptionConfigHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API CreatePredictorResult
{
public:
CreatePredictorResult();
CreatePredictorResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreatePredictorResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the predictor.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor.</p>
*/
inline CreatePredictorResult& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor.</p>
*/
inline CreatePredictorResult& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor.</p>
*/
inline CreatePredictorResult& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
private:
Aws::String m_predictorArn;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,87 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/model/S3Config.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The destination for an exported forecast, an AWS Identity and Access
* Management (IAM) role that allows Amazon Forecast to access the location and,
* optionally, an AWS Key Management Service (KMS) key. This object is submitted in
* the <a>CreateForecastExportJob</a> request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DataDestination">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API DataDestination
{
public:
DataDestination();
DataDestination(Aws::Utils::Json::JsonView jsonValue);
DataDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket along with
* the credentials to access the bucket.</p>
*/
inline const S3Config& GetS3Config() const{ return m_s3Config; }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket along with
* the credentials to access the bucket.</p>
*/
inline bool S3ConfigHasBeenSet() const { return m_s3ConfigHasBeenSet; }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket along with
* the credentials to access the bucket.</p>
*/
inline void SetS3Config(const S3Config& value) { m_s3ConfigHasBeenSet = true; m_s3Config = value; }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket along with
* the credentials to access the bucket.</p>
*/
inline void SetS3Config(S3Config&& value) { m_s3ConfigHasBeenSet = true; m_s3Config = std::move(value); }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket along with
* the credentials to access the bucket.</p>
*/
inline DataDestination& WithS3Config(const S3Config& value) { SetS3Config(value); return *this;}
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket along with
* the credentials to access the bucket.</p>
*/
inline DataDestination& WithS3Config(S3Config&& value) { SetS3Config(std::move(value)); return *this;}
private:
S3Config m_s3Config;
bool m_s3ConfigHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,87 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/model/S3Config.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The source of your training data, an AWS Identity and Access Management (IAM)
* role that allows Amazon Forecast to access the data and, optionally, an AWS Key
* Management Service (KMS) key. This object is submitted in the
* <a>CreateDatasetImportJob</a> request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DataSource">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API DataSource
{
public:
DataSource();
DataSource(Aws::Utils::Json::JsonView jsonValue);
DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The path to the training data stored in an Amazon Simple Storage Service
* (Amazon S3) bucket along with the credentials to access the data.</p>
*/
inline const S3Config& GetS3Config() const{ return m_s3Config; }
/**
* <p>The path to the training data stored in an Amazon Simple Storage Service
* (Amazon S3) bucket along with the credentials to access the data.</p>
*/
inline bool S3ConfigHasBeenSet() const { return m_s3ConfigHasBeenSet; }
/**
* <p>The path to the training data stored in an Amazon Simple Storage Service
* (Amazon S3) bucket along with the credentials to access the data.</p>
*/
inline void SetS3Config(const S3Config& value) { m_s3ConfigHasBeenSet = true; m_s3Config = value; }
/**
* <p>The path to the training data stored in an Amazon Simple Storage Service
* (Amazon S3) bucket along with the credentials to access the data.</p>
*/
inline void SetS3Config(S3Config&& value) { m_s3ConfigHasBeenSet = true; m_s3Config = std::move(value); }
/**
* <p>The path to the training data stored in an Amazon Simple Storage Service
* (Amazon S3) bucket along with the credentials to access the data.</p>
*/
inline DataSource& WithS3Config(const S3Config& value) { SetS3Config(value); return *this;}
/**
* <p>The path to the training data stored in an Amazon Simple Storage Service
* (Amazon S3) bucket along with the credentials to access the data.</p>
*/
inline DataSource& WithS3Config(S3Config&& value) { SetS3Config(std::move(value)); return *this;}
private:
S3Config m_s3Config;
bool m_s3ConfigHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,222 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides a summary of the dataset group properties used in the
* <a>ListDatasetGroups</a> operation. To get the complete set of properties, call
* the <a>DescribeDatasetGroup</a> operation, and provide the
* <code>DatasetGroupArn</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DatasetGroupSummary">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API DatasetGroupSummary
{
public:
DatasetGroupSummary();
DatasetGroupSummary(Aws::Utils::Json::JsonView jsonValue);
DatasetGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline DatasetGroupSummary& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline DatasetGroupSummary& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline DatasetGroupSummary& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The name of the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupName() const{ return m_datasetGroupName; }
/**
* <p>The name of the dataset group.</p>
*/
inline bool DatasetGroupNameHasBeenSet() const { return m_datasetGroupNameHasBeenSet; }
/**
* <p>The name of the dataset group.</p>
*/
inline void SetDatasetGroupName(const Aws::String& value) { m_datasetGroupNameHasBeenSet = true; m_datasetGroupName = value; }
/**
* <p>The name of the dataset group.</p>
*/
inline void SetDatasetGroupName(Aws::String&& value) { m_datasetGroupNameHasBeenSet = true; m_datasetGroupName = std::move(value); }
/**
* <p>The name of the dataset group.</p>
*/
inline void SetDatasetGroupName(const char* value) { m_datasetGroupNameHasBeenSet = true; m_datasetGroupName.assign(value); }
/**
* <p>The name of the dataset group.</p>
*/
inline DatasetGroupSummary& WithDatasetGroupName(const Aws::String& value) { SetDatasetGroupName(value); return *this;}
/**
* <p>The name of the dataset group.</p>
*/
inline DatasetGroupSummary& WithDatasetGroupName(Aws::String&& value) { SetDatasetGroupName(std::move(value)); return *this;}
/**
* <p>The name of the dataset group.</p>
*/
inline DatasetGroupSummary& WithDatasetGroupName(const char* value) { SetDatasetGroupName(value); return *this;}
/**
* <p>When the dataset group was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the dataset group was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>When the dataset group was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>When the dataset group was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>When the dataset group was created.</p>
*/
inline DatasetGroupSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the dataset group was created.</p>
*/
inline DatasetGroupSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasetGroups</code> call.</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasetGroups</code> call.</p>
*/
inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasetGroups</code> call.</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasetGroups</code> call.</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasetGroups</code> call.</p>
*/
inline DatasetGroupSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasetGroups</code> call.</p>
*/
inline DatasetGroupSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_datasetGroupArn;
bool m_datasetGroupArnHasBeenSet;
Aws::String m_datasetGroupName;
bool m_datasetGroupNameHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastModificationTime;
bool m_lastModificationTimeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,437 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DataSource.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides a summary of the dataset import job properties used in the
* <a>ListDatasetImportJobs</a> operation. To get the complete set of properties,
* call the <a>DescribeDatasetImportJob</a> operation, and provide the
* <code>DatasetImportJobArn</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DatasetImportJobSummary">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API DatasetImportJobSummary
{
public:
DatasetImportJobSummary();
DatasetImportJobSummary(Aws::Utils::Json::JsonView jsonValue);
DatasetImportJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline const Aws::String& GetDatasetImportJobArn() const{ return m_datasetImportJobArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline bool DatasetImportJobArnHasBeenSet() const { return m_datasetImportJobArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(const Aws::String& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(Aws::String&& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(const char* value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline DatasetImportJobSummary& WithDatasetImportJobArn(const Aws::String& value) { SetDatasetImportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline DatasetImportJobSummary& WithDatasetImportJobArn(Aws::String&& value) { SetDatasetImportJobArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline DatasetImportJobSummary& WithDatasetImportJobArn(const char* value) { SetDatasetImportJobArn(value); return *this;}
/**
* <p>The name of the dataset import job.</p>
*/
inline const Aws::String& GetDatasetImportJobName() const{ return m_datasetImportJobName; }
/**
* <p>The name of the dataset import job.</p>
*/
inline bool DatasetImportJobNameHasBeenSet() const { return m_datasetImportJobNameHasBeenSet; }
/**
* <p>The name of the dataset import job.</p>
*/
inline void SetDatasetImportJobName(const Aws::String& value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName = value; }
/**
* <p>The name of the dataset import job.</p>
*/
inline void SetDatasetImportJobName(Aws::String&& value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName = std::move(value); }
/**
* <p>The name of the dataset import job.</p>
*/
inline void SetDatasetImportJobName(const char* value) { m_datasetImportJobNameHasBeenSet = true; m_datasetImportJobName.assign(value); }
/**
* <p>The name of the dataset import job.</p>
*/
inline DatasetImportJobSummary& WithDatasetImportJobName(const Aws::String& value) { SetDatasetImportJobName(value); return *this;}
/**
* <p>The name of the dataset import job.</p>
*/
inline DatasetImportJobSummary& WithDatasetImportJobName(Aws::String&& value) { SetDatasetImportJobName(std::move(value)); return *this;}
/**
* <p>The name of the dataset import job.</p>
*/
inline DatasetImportJobSummary& WithDatasetImportJobName(const char* value) { SetDatasetImportJobName(value); return *this;}
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> includes an AWS Key Management Service (KMS)
* key.</p>
*/
inline const DataSource& GetDataSource() const{ return m_dataSource; }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> includes an AWS Key Management Service (KMS)
* key.</p>
*/
inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> includes an AWS Key Management Service (KMS)
* key.</p>
*/
inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> includes an AWS Key Management Service (KMS)
* key.</p>
*/
inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> includes an AWS Key Management Service (KMS)
* key.</p>
*/
inline DatasetImportJobSummary& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;}
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data. The
* training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is
* used, <code>DataSource</code> includes an AWS Key Management Service (KMS)
* key.</p>
*/
inline DatasetImportJobSummary& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;}
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline DatasetImportJobSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline DatasetImportJobSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline DatasetImportJobSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DatasetImportJobSummary& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DatasetImportJobSummary& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DatasetImportJobSummary& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>When the dataset import job was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the dataset import job was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>When the dataset import job was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>When the dataset import job was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>When the dataset import job was created.</p>
*/
inline DatasetImportJobSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the dataset import job was created.</p>
*/
inline DatasetImportJobSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline DatasetImportJobSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline DatasetImportJobSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_datasetImportJobArn;
bool m_datasetImportJobArnHasBeenSet;
Aws::String m_datasetImportJobName;
bool m_datasetImportJobNameHasBeenSet;
DataSource m_dataSource;
bool m_dataSourceHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastModificationTime;
bool m_lastModificationTimeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,304 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DatasetType.h>
#include <aws/forecast/model/Domain.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides a summary of the dataset properties used in the <a>ListDatasets</a>
* operation. To get the complete set of properties, call the
* <a>DescribeDataset</a> operation, and provide the
* <code>DatasetArn</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DatasetSummary">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API DatasetSummary
{
public:
DatasetSummary();
DatasetSummary(Aws::Utils::Json::JsonView jsonValue);
DatasetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DatasetSummary& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DatasetSummary& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DatasetSummary& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
/**
* <p>The name of the dataset.</p>
*/
inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
/**
* <p>The name of the dataset.</p>
*/
inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
/**
* <p>The name of the dataset.</p>
*/
inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
/**
* <p>The name of the dataset.</p>
*/
inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
/**
* <p>The name of the dataset.</p>
*/
inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
/**
* <p>The name of the dataset.</p>
*/
inline DatasetSummary& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
/**
* <p>The name of the dataset.</p>
*/
inline DatasetSummary& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
/**
* <p>The name of the dataset.</p>
*/
inline DatasetSummary& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
/**
* <p>The dataset type.</p>
*/
inline const DatasetType& GetDatasetType() const{ return m_datasetType; }
/**
* <p>The dataset type.</p>
*/
inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
/**
* <p>The dataset type.</p>
*/
inline void SetDatasetType(const DatasetType& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
/**
* <p>The dataset type.</p>
*/
inline void SetDatasetType(DatasetType&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); }
/**
* <p>The dataset type.</p>
*/
inline DatasetSummary& WithDatasetType(const DatasetType& value) { SetDatasetType(value); return *this;}
/**
* <p>The dataset type.</p>
*/
inline DatasetSummary& WithDatasetType(DatasetType&& value) { SetDatasetType(std::move(value)); return *this;}
/**
* <p>The domain associated with the dataset.</p>
*/
inline const Domain& GetDomain() const{ return m_domain; }
/**
* <p>The domain associated with the dataset.</p>
*/
inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
/**
* <p>The domain associated with the dataset.</p>
*/
inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
/**
* <p>The domain associated with the dataset.</p>
*/
inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
/**
* <p>The domain associated with the dataset.</p>
*/
inline DatasetSummary& WithDomain(const Domain& value) { SetDomain(value); return *this;}
/**
* <p>The domain associated with the dataset.</p>
*/
inline DatasetSummary& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>When the dataset was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the dataset was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>When the dataset was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>When the dataset was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>When the dataset was created.</p>
*/
inline DatasetSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the dataset was created.</p>
*/
inline DatasetSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasets</code> call. After a <a>CreateDatasetImportJob</a> operation
* has finished, <code>LastModificationTime</code> is when the import job completed
* or failed.</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasets</code> call. After a <a>CreateDatasetImportJob</a> operation
* has finished, <code>LastModificationTime</code> is when the import job completed
* or failed.</p>
*/
inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasets</code> call. After a <a>CreateDatasetImportJob</a> operation
* has finished, <code>LastModificationTime</code> is when the import job completed
* or failed.</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasets</code> call. After a <a>CreateDatasetImportJob</a> operation
* has finished, <code>LastModificationTime</code> is when the import job completed
* or failed.</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasets</code> call. After a <a>CreateDatasetImportJob</a> operation
* has finished, <code>LastModificationTime</code> is when the import job completed
* or failed.</p>
*/
inline DatasetSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>ListDatasets</code> call. After a <a>CreateDatasetImportJob</a> operation
* has finished, <code>LastModificationTime</code> is when the import job completed
* or failed.</p>
*/
inline DatasetSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_datasetArn;
bool m_datasetArnHasBeenSet;
Aws::String m_datasetName;
bool m_datasetNameHasBeenSet;
DatasetType m_datasetType;
bool m_datasetTypeHasBeenSet;
Domain m_domain;
bool m_domainHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastModificationTime;
bool m_lastModificationTimeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
enum class DatasetType
{
NOT_SET,
TARGET_TIME_SERIES,
RELATED_TIME_SERIES,
ITEM_METADATA
};
namespace DatasetTypeMapper
{
AWS_FORECASTSERVICE_API DatasetType GetDatasetTypeForName(const Aws::String& name);
AWS_FORECASTSERVICE_API Aws::String GetNameForDatasetType(DatasetType value);
} // namespace DatasetTypeMapper
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DeleteDatasetGroupRequest : public ForecastServiceRequest
{
public:
DeleteDatasetGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteDatasetGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the dataset group to delete.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group to delete.</p>
*/
inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group to delete.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group to delete.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group to delete.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group to delete.</p>
*/
inline DeleteDatasetGroupRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group to delete.</p>
*/
inline DeleteDatasetGroupRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group to delete.</p>
*/
inline DeleteDatasetGroupRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
private:
Aws::String m_datasetGroupArn;
bool m_datasetGroupArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DeleteDatasetImportJobRequest : public ForecastServiceRequest
{
public:
DeleteDatasetImportJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteDatasetImportJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job to delete.</p>
*/
inline const Aws::String& GetDatasetImportJobArn() const{ return m_datasetImportJobArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job to delete.</p>
*/
inline bool DatasetImportJobArnHasBeenSet() const { return m_datasetImportJobArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job to delete.</p>
*/
inline void SetDatasetImportJobArn(const Aws::String& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job to delete.</p>
*/
inline void SetDatasetImportJobArn(Aws::String&& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job to delete.</p>
*/
inline void SetDatasetImportJobArn(const char* value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job to delete.</p>
*/
inline DeleteDatasetImportJobRequest& WithDatasetImportJobArn(const Aws::String& value) { SetDatasetImportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job to delete.</p>
*/
inline DeleteDatasetImportJobRequest& WithDatasetImportJobArn(Aws::String&& value) { SetDatasetImportJobArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job to delete.</p>
*/
inline DeleteDatasetImportJobRequest& WithDatasetImportJobArn(const char* value) { SetDatasetImportJobArn(value); return *this;}
private:
Aws::String m_datasetImportJobArn;
bool m_datasetImportJobArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DeleteDatasetRequest : public ForecastServiceRequest
{
public:
DeleteDatasetRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteDataset"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the dataset to delete.</p>
*/
inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset to delete.</p>
*/
inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset to delete.</p>
*/
inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset to delete.</p>
*/
inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset to delete.</p>
*/
inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset to delete.</p>
*/
inline DeleteDatasetRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset to delete.</p>
*/
inline DeleteDatasetRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset to delete.</p>
*/
inline DeleteDatasetRequest& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
private:
Aws::String m_datasetArn;
bool m_datasetArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DeleteForecastExportJobRequest : public ForecastServiceRequest
{
public:
DeleteForecastExportJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteForecastExportJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job to delete.</p>
*/
inline const Aws::String& GetForecastExportJobArn() const{ return m_forecastExportJobArn; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job to delete.</p>
*/
inline bool ForecastExportJobArnHasBeenSet() const { return m_forecastExportJobArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job to delete.</p>
*/
inline void SetForecastExportJobArn(const Aws::String& value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job to delete.</p>
*/
inline void SetForecastExportJobArn(Aws::String&& value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job to delete.</p>
*/
inline void SetForecastExportJobArn(const char* value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job to delete.</p>
*/
inline DeleteForecastExportJobRequest& WithForecastExportJobArn(const Aws::String& value) { SetForecastExportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job to delete.</p>
*/
inline DeleteForecastExportJobRequest& WithForecastExportJobArn(Aws::String&& value) { SetForecastExportJobArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job to delete.</p>
*/
inline DeleteForecastExportJobRequest& WithForecastExportJobArn(const char* value) { SetForecastExportJobArn(value); return *this;}
private:
Aws::String m_forecastExportJobArn;
bool m_forecastExportJobArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DeleteForecastRequest : public ForecastServiceRequest
{
public:
DeleteForecastRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteForecast"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the forecast to delete.</p>
*/
inline const Aws::String& GetForecastArn() const{ return m_forecastArn; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast to delete.</p>
*/
inline bool ForecastArnHasBeenSet() const { return m_forecastArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast to delete.</p>
*/
inline void SetForecastArn(const Aws::String& value) { m_forecastArnHasBeenSet = true; m_forecastArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast to delete.</p>
*/
inline void SetForecastArn(Aws::String&& value) { m_forecastArnHasBeenSet = true; m_forecastArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast to delete.</p>
*/
inline void SetForecastArn(const char* value) { m_forecastArnHasBeenSet = true; m_forecastArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast to delete.</p>
*/
inline DeleteForecastRequest& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast to delete.</p>
*/
inline DeleteForecastRequest& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast to delete.</p>
*/
inline DeleteForecastRequest& WithForecastArn(const char* value) { SetForecastArn(value); return *this;}
private:
Aws::String m_forecastArn;
bool m_forecastArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DeletePredictorRequest : public ForecastServiceRequest
{
public:
DeletePredictorRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeletePredictor"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the predictor to delete.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to delete.</p>
*/
inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to delete.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to delete.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to delete.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to delete.</p>
*/
inline DeletePredictorRequest& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor to delete.</p>
*/
inline DeletePredictorRequest& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor to delete.</p>
*/
inline DeletePredictorRequest& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
private:
Aws::String m_predictorArn;
bool m_predictorArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DescribeDatasetGroupRequest : public ForecastServiceRequest
{
public:
DescribeDatasetGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeDatasetGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline DescribeDatasetGroupRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline DescribeDatasetGroupRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline DescribeDatasetGroupRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
private:
Aws::String m_datasetGroupArn;
bool m_datasetGroupArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,369 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Domain.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API DescribeDatasetGroupResult
{
public:
DescribeDatasetGroupResult();
DescribeDatasetGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDatasetGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupName() const{ return m_datasetGroupName; }
/**
* <p>The name of the dataset group.</p>
*/
inline void SetDatasetGroupName(const Aws::String& value) { m_datasetGroupName = value; }
/**
* <p>The name of the dataset group.</p>
*/
inline void SetDatasetGroupName(Aws::String&& value) { m_datasetGroupName = std::move(value); }
/**
* <p>The name of the dataset group.</p>
*/
inline void SetDatasetGroupName(const char* value) { m_datasetGroupName.assign(value); }
/**
* <p>The name of the dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDatasetGroupName(const Aws::String& value) { SetDatasetGroupName(value); return *this;}
/**
* <p>The name of the dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDatasetGroupName(Aws::String&& value) { SetDatasetGroupName(std::move(value)); return *this;}
/**
* <p>The name of the dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDatasetGroupName(const char* value) { SetDatasetGroupName(value); return *this;}
/**
* <p>The ARN of the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The ARN of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArn = value; }
/**
* <p>The ARN of the dataset group.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArn = std::move(value); }
/**
* <p>The ARN of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArn.assign(value); }
/**
* <p>The ARN of the dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The ARN of the dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The ARN of the dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets contained in the
* dataset group.</p>
*/
inline const Aws::Vector<Aws::String>& GetDatasetArns() const{ return m_datasetArns; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets contained in the
* dataset group.</p>
*/
inline void SetDatasetArns(const Aws::Vector<Aws::String>& value) { m_datasetArns = value; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets contained in the
* dataset group.</p>
*/
inline void SetDatasetArns(Aws::Vector<Aws::String>&& value) { m_datasetArns = std::move(value); }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets contained in the
* dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDatasetArns(const Aws::Vector<Aws::String>& value) { SetDatasetArns(value); return *this;}
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets contained in the
* dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDatasetArns(Aws::Vector<Aws::String>&& value) { SetDatasetArns(std::move(value)); return *this;}
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets contained in the
* dataset group.</p>
*/
inline DescribeDatasetGroupResult& AddDatasetArns(const Aws::String& value) { m_datasetArns.push_back(value); return *this; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets contained in the
* dataset group.</p>
*/
inline DescribeDatasetGroupResult& AddDatasetArns(Aws::String&& value) { m_datasetArns.push_back(std::move(value)); return *this; }
/**
* <p>An array of Amazon Resource Names (ARNs) of the datasets contained in the
* dataset group.</p>
*/
inline DescribeDatasetGroupResult& AddDatasetArns(const char* value) { m_datasetArns.push_back(value); return *this; }
/**
* <p>The domain associated with the dataset group.</p>
*/
inline const Domain& GetDomain() const{ return m_domain; }
/**
* <p>The domain associated with the dataset group.</p>
*/
inline void SetDomain(const Domain& value) { m_domain = value; }
/**
* <p>The domain associated with the dataset group.</p>
*/
inline void SetDomain(Domain&& value) { m_domain = std::move(value); }
/**
* <p>The domain associated with the dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDomain(const Domain& value) { SetDomain(value); return *this;}
/**
* <p>The domain associated with the dataset group.</p>
*/
inline DescribeDatasetGroupResult& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>The status of the dataset group. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply when you call the
* <a>UpdateDatasetGroup</a> operation.</p> <p>The <code>Status</code> of
* the dataset group must be <code>ACTIVE</code> before you can use the dataset
* group to create a predictor.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the dataset group. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply when you call the
* <a>UpdateDatasetGroup</a> operation.</p> <p>The <code>Status</code> of
* the dataset group must be <code>ACTIVE</code> before you can use the dataset
* group to create a predictor.</p>
*/
inline void SetStatus(const Aws::String& value) { m_status = value; }
/**
* <p>The status of the dataset group. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply when you call the
* <a>UpdateDatasetGroup</a> operation.</p> <p>The <code>Status</code> of
* the dataset group must be <code>ACTIVE</code> before you can use the dataset
* group to create a predictor.</p>
*/
inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
/**
* <p>The status of the dataset group. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply when you call the
* <a>UpdateDatasetGroup</a> operation.</p> <p>The <code>Status</code> of
* the dataset group must be <code>ACTIVE</code> before you can use the dataset
* group to create a predictor.</p>
*/
inline void SetStatus(const char* value) { m_status.assign(value); }
/**
* <p>The status of the dataset group. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply when you call the
* <a>UpdateDatasetGroup</a> operation.</p> <p>The <code>Status</code> of
* the dataset group must be <code>ACTIVE</code> before you can use the dataset
* group to create a predictor.</p>
*/
inline DescribeDatasetGroupResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the dataset group. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply when you call the
* <a>UpdateDatasetGroup</a> operation.</p> <p>The <code>Status</code> of
* the dataset group must be <code>ACTIVE</code> before you can use the dataset
* group to create a predictor.</p>
*/
inline DescribeDatasetGroupResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the dataset group. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply when you call the
* <a>UpdateDatasetGroup</a> operation.</p> <p>The <code>Status</code> of
* the dataset group must be <code>ACTIVE</code> before you can use the dataset
* group to create a predictor.</p>
*/
inline DescribeDatasetGroupResult& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>When the dataset group was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the dataset group was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>When the dataset group was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>When the dataset group was created.</p>
*/
inline DescribeDatasetGroupResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the dataset group was created.</p>
*/
inline DescribeDatasetGroupResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDatasetGroup</code> call.</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDatasetGroup</code> call.</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTime = value; }
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDatasetGroup</code> call.</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTime = std::move(value); }
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDatasetGroup</code> call.</p>
*/
inline DescribeDatasetGroupResult& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>When the dataset group was created or last updated from a call to the
* <a>UpdateDatasetGroup</a> operation. While the dataset group is being updated,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDatasetGroup</code> call.</p>
*/
inline DescribeDatasetGroupResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_datasetGroupName;
Aws::String m_datasetGroupArn;
Aws::Vector<Aws::String> m_datasetArns;
Domain m_domain;
Aws::String m_status;
Aws::Utils::DateTime m_creationTime;
Aws::Utils::DateTime m_lastModificationTime;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DescribeDatasetImportJobRequest : public ForecastServiceRequest
{
public:
DescribeDatasetImportJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeDatasetImportJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline const Aws::String& GetDatasetImportJobArn() const{ return m_datasetImportJobArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline bool DatasetImportJobArnHasBeenSet() const { return m_datasetImportJobArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(const Aws::String& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(Aws::String&& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(const char* value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline DescribeDatasetImportJobRequest& WithDatasetImportJobArn(const Aws::String& value) { SetDatasetImportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline DescribeDatasetImportJobRequest& WithDatasetImportJobArn(Aws::String&& value) { SetDatasetImportJobArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
*/
inline DescribeDatasetImportJobRequest& WithDatasetImportJobArn(const char* value) { SetDatasetImportJobArn(value); return *this;}
private:
Aws::String m_datasetImportJobArn;
bool m_datasetImportJobArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,565 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DataSource.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/DateTime.h>
#include <aws/forecast/model/Statistics.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API DescribeDatasetImportJobResult
{
public:
DescribeDatasetImportJobResult();
DescribeDatasetImportJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDatasetImportJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the dataset import job.</p>
*/
inline const Aws::String& GetDatasetImportJobName() const{ return m_datasetImportJobName; }
/**
* <p>The name of the dataset import job.</p>
*/
inline void SetDatasetImportJobName(const Aws::String& value) { m_datasetImportJobName = value; }
/**
* <p>The name of the dataset import job.</p>
*/
inline void SetDatasetImportJobName(Aws::String&& value) { m_datasetImportJobName = std::move(value); }
/**
* <p>The name of the dataset import job.</p>
*/
inline void SetDatasetImportJobName(const char* value) { m_datasetImportJobName.assign(value); }
/**
* <p>The name of the dataset import job.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetImportJobName(const Aws::String& value) { SetDatasetImportJobName(value); return *this;}
/**
* <p>The name of the dataset import job.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetImportJobName(Aws::String&& value) { SetDatasetImportJobName(std::move(value)); return *this;}
/**
* <p>The name of the dataset import job.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetImportJobName(const char* value) { SetDatasetImportJobName(value); return *this;}
/**
* <p>The ARN of the dataset import job.</p>
*/
inline const Aws::String& GetDatasetImportJobArn() const{ return m_datasetImportJobArn; }
/**
* <p>The ARN of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(const Aws::String& value) { m_datasetImportJobArn = value; }
/**
* <p>The ARN of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(Aws::String&& value) { m_datasetImportJobArn = std::move(value); }
/**
* <p>The ARN of the dataset import job.</p>
*/
inline void SetDatasetImportJobArn(const char* value) { m_datasetImportJobArn.assign(value); }
/**
* <p>The ARN of the dataset import job.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetImportJobArn(const Aws::String& value) { SetDatasetImportJobArn(value); return *this;}
/**
* <p>The ARN of the dataset import job.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetImportJobArn(Aws::String&& value) { SetDatasetImportJobArn(std::move(value)); return *this;}
/**
* <p>The ARN of the dataset import job.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetImportJobArn(const char* value) { SetDatasetImportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset that the training data was
* imported to.</p>
*/
inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset that the training data was
* imported to.</p>
*/
inline void SetDatasetArn(const Aws::String& value) { m_datasetArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset that the training data was
* imported to.</p>
*/
inline void SetDatasetArn(Aws::String&& value) { m_datasetArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset that the training data was
* imported to.</p>
*/
inline void SetDatasetArn(const char* value) { m_datasetArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset that the training data was
* imported to.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset that the training data was
* imported to.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset that the training data was
* imported to.</p>
*/
inline DescribeDatasetImportJobResult& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul>
*/
inline const Aws::String& GetTimestampFormat() const{ return m_timestampFormat; }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul>
*/
inline void SetTimestampFormat(const Aws::String& value) { m_timestampFormat = value; }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul>
*/
inline void SetTimestampFormat(Aws::String&& value) { m_timestampFormat = std::move(value); }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul>
*/
inline void SetTimestampFormat(const char* value) { m_timestampFormat.assign(value); }
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul>
*/
inline DescribeDatasetImportJobResult& WithTimestampFormat(const Aws::String& value) { SetTimestampFormat(value); return *this;}
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul>
*/
inline DescribeDatasetImportJobResult& WithTimestampFormat(Aws::String&& value) { SetTimestampFormat(std::move(value)); return *this;}
/**
* <p>The format of timestamps in the dataset. The format that you specify depends
* on the <code>DataFrequency</code> specified when the dataset was created. The
* following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the
* following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd
* HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min;
* and optionally, for: Y, M, W, and D</p> </li> </ul>
*/
inline DescribeDatasetImportJobResult& WithTimestampFormat(const char* value) { SetTimestampFormat(value); return *this;}
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data.</p>
* <p>If encryption is used, <code>DataSource</code> includes an AWS Key Management
* Service (KMS) key.</p>
*/
inline const DataSource& GetDataSource() const{ return m_dataSource; }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data.</p>
* <p>If encryption is used, <code>DataSource</code> includes an AWS Key Management
* Service (KMS) key.</p>
*/
inline void SetDataSource(const DataSource& value) { m_dataSource = value; }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data.</p>
* <p>If encryption is used, <code>DataSource</code> includes an AWS Key Management
* Service (KMS) key.</p>
*/
inline void SetDataSource(DataSource&& value) { m_dataSource = std::move(value); }
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data.</p>
* <p>If encryption is used, <code>DataSource</code> includes an AWS Key Management
* Service (KMS) key.</p>
*/
inline DescribeDatasetImportJobResult& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;}
/**
* <p>The location of the training data to import and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the data.</p>
* <p>If encryption is used, <code>DataSource</code> includes an AWS Key Management
* Service (KMS) key.</p>
*/
inline DescribeDatasetImportJobResult& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;}
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline const Aws::Map<Aws::String, Statistics>& GetFieldStatistics() const{ return m_fieldStatistics; }
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline void SetFieldStatistics(const Aws::Map<Aws::String, Statistics>& value) { m_fieldStatistics = value; }
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline void SetFieldStatistics(Aws::Map<Aws::String, Statistics>&& value) { m_fieldStatistics = std::move(value); }
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline DescribeDatasetImportJobResult& WithFieldStatistics(const Aws::Map<Aws::String, Statistics>& value) { SetFieldStatistics(value); return *this;}
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline DescribeDatasetImportJobResult& WithFieldStatistics(Aws::Map<Aws::String, Statistics>&& value) { SetFieldStatistics(std::move(value)); return *this;}
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline DescribeDatasetImportJobResult& AddFieldStatistics(const Aws::String& key, const Statistics& value) { m_fieldStatistics.emplace(key, value); return *this; }
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline DescribeDatasetImportJobResult& AddFieldStatistics(Aws::String&& key, const Statistics& value) { m_fieldStatistics.emplace(std::move(key), value); return *this; }
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline DescribeDatasetImportJobResult& AddFieldStatistics(const Aws::String& key, Statistics&& value) { m_fieldStatistics.emplace(key, std::move(value)); return *this; }
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline DescribeDatasetImportJobResult& AddFieldStatistics(Aws::String&& key, Statistics&& value) { m_fieldStatistics.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline DescribeDatasetImportJobResult& AddFieldStatistics(const char* key, Statistics&& value) { m_fieldStatistics.emplace(key, std::move(value)); return *this; }
/**
* <p>Statistical information about each field in the input data.</p>
*/
inline DescribeDatasetImportJobResult& AddFieldStatistics(const char* key, const Statistics& value) { m_fieldStatistics.emplace(key, value); return *this; }
/**
* <p>The size of the dataset in gigabytes (GB) after the import job has
* finished.</p>
*/
inline double GetDataSize() const{ return m_dataSize; }
/**
* <p>The size of the dataset in gigabytes (GB) after the import job has
* finished.</p>
*/
inline void SetDataSize(double value) { m_dataSize = value; }
/**
* <p>The size of the dataset in gigabytes (GB) after the import job has
* finished.</p>
*/
inline DescribeDatasetImportJobResult& WithDataSize(double value) { SetDataSize(value); return *this;}
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(const Aws::String& value) { m_status = value; }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(const char* value) { m_status.assign(value); }
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline DescribeDatasetImportJobResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline DescribeDatasetImportJobResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the dataset import job. The status is reflected in the status
* of the dataset. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul>
*/
inline DescribeDatasetImportJobResult& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_message = value; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_message = std::move(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const char* value) { m_message.assign(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeDatasetImportJobResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeDatasetImportJobResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeDatasetImportJobResult& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>When the dataset import job was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the dataset import job was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>When the dataset import job was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>When the dataset import job was created.</p>
*/
inline DescribeDatasetImportJobResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the dataset import job was created.</p>
*/
inline DescribeDatasetImportJobResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTime = value; }
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTime = std::move(value); }
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline DescribeDatasetImportJobResult& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>The last time that the dataset was modified. The time depends on the status
* of the job, as follows:</p> <ul> <li> <p> <code>CREATE_PENDING</code> - The same
* time as <code>CreationTime</code>.</p> </li> <li> <p>
* <code>CREATE_IN_PROGRESS</code> - The current timestamp.</p> </li> <li> <p>
* <code>ACTIVE</code> or <code>CREATE_FAILED</code> - When the job finished or
* failed.</p> </li> </ul>
*/
inline DescribeDatasetImportJobResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_datasetImportJobName;
Aws::String m_datasetImportJobArn;
Aws::String m_datasetArn;
Aws::String m_timestampFormat;
DataSource m_dataSource;
Aws::Map<Aws::String, Statistics> m_fieldStatistics;
double m_dataSize;
Aws::String m_status;
Aws::String m_message;
Aws::Utils::DateTime m_creationTime;
Aws::Utils::DateTime m_lastModificationTime;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DescribeDatasetRequest : public ForecastServiceRequest
{
public:
DescribeDatasetRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeDataset"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DescribeDatasetRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DescribeDatasetRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DescribeDatasetRequest& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
private:
Aws::String m_datasetArn;
bool m_datasetArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,509 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/Domain.h>
#include <aws/forecast/model/DatasetType.h>
#include <aws/forecast/model/Schema.h>
#include <aws/forecast/model/EncryptionConfig.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API DescribeDatasetResult
{
public:
DescribeDatasetResult();
DescribeDatasetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDatasetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(const Aws::String& value) { m_datasetArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(Aws::String&& value) { m_datasetArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline void SetDatasetArn(const char* value) { m_datasetArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DescribeDatasetResult& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DescribeDatasetResult& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset.</p>
*/
inline DescribeDatasetResult& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
/**
* <p>The name of the dataset.</p>
*/
inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
/**
* <p>The name of the dataset.</p>
*/
inline void SetDatasetName(const Aws::String& value) { m_datasetName = value; }
/**
* <p>The name of the dataset.</p>
*/
inline void SetDatasetName(Aws::String&& value) { m_datasetName = std::move(value); }
/**
* <p>The name of the dataset.</p>
*/
inline void SetDatasetName(const char* value) { m_datasetName.assign(value); }
/**
* <p>The name of the dataset.</p>
*/
inline DescribeDatasetResult& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
/**
* <p>The name of the dataset.</p>
*/
inline DescribeDatasetResult& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
/**
* <p>The name of the dataset.</p>
*/
inline DescribeDatasetResult& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
/**
* <p>The domain associated with the dataset.</p>
*/
inline const Domain& GetDomain() const{ return m_domain; }
/**
* <p>The domain associated with the dataset.</p>
*/
inline void SetDomain(const Domain& value) { m_domain = value; }
/**
* <p>The domain associated with the dataset.</p>
*/
inline void SetDomain(Domain&& value) { m_domain = std::move(value); }
/**
* <p>The domain associated with the dataset.</p>
*/
inline DescribeDatasetResult& WithDomain(const Domain& value) { SetDomain(value); return *this;}
/**
* <p>The domain associated with the dataset.</p>
*/
inline DescribeDatasetResult& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>The dataset type.</p>
*/
inline const DatasetType& GetDatasetType() const{ return m_datasetType; }
/**
* <p>The dataset type.</p>
*/
inline void SetDatasetType(const DatasetType& value) { m_datasetType = value; }
/**
* <p>The dataset type.</p>
*/
inline void SetDatasetType(DatasetType&& value) { m_datasetType = std::move(value); }
/**
* <p>The dataset type.</p>
*/
inline DescribeDatasetResult& WithDatasetType(const DatasetType& value) { SetDatasetType(value); return *this;}
/**
* <p>The dataset type.</p>
*/
inline DescribeDatasetResult& WithDatasetType(DatasetType&& value) { SetDatasetType(std::move(value)); return *this;}
/**
* <p>The frequency of data collection.</p> <p>Valid intervals are Y (Year), M
* (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes),
* 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M"
* indicates every month and "30min" indicates every 30 minutes.</p>
*/
inline const Aws::String& GetDataFrequency() const{ return m_dataFrequency; }
/**
* <p>The frequency of data collection.</p> <p>Valid intervals are Y (Year), M
* (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes),
* 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M"
* indicates every month and "30min" indicates every 30 minutes.</p>
*/
inline void SetDataFrequency(const Aws::String& value) { m_dataFrequency = value; }
/**
* <p>The frequency of data collection.</p> <p>Valid intervals are Y (Year), M
* (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes),
* 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M"
* indicates every month and "30min" indicates every 30 minutes.</p>
*/
inline void SetDataFrequency(Aws::String&& value) { m_dataFrequency = std::move(value); }
/**
* <p>The frequency of data collection.</p> <p>Valid intervals are Y (Year), M
* (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes),
* 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M"
* indicates every month and "30min" indicates every 30 minutes.</p>
*/
inline void SetDataFrequency(const char* value) { m_dataFrequency.assign(value); }
/**
* <p>The frequency of data collection.</p> <p>Valid intervals are Y (Year), M
* (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes),
* 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M"
* indicates every month and "30min" indicates every 30 minutes.</p>
*/
inline DescribeDatasetResult& WithDataFrequency(const Aws::String& value) { SetDataFrequency(value); return *this;}
/**
* <p>The frequency of data collection.</p> <p>Valid intervals are Y (Year), M
* (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes),
* 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M"
* indicates every month and "30min" indicates every 30 minutes.</p>
*/
inline DescribeDatasetResult& WithDataFrequency(Aws::String&& value) { SetDataFrequency(std::move(value)); return *this;}
/**
* <p>The frequency of data collection.</p> <p>Valid intervals are Y (Year), M
* (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes),
* 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M"
* indicates every month and "30min" indicates every 30 minutes.</p>
*/
inline DescribeDatasetResult& WithDataFrequency(const char* value) { SetDataFrequency(value); return *this;}
/**
* <p>An array of <code>SchemaAttribute</code> objects that specify the dataset
* fields. Each <code>SchemaAttribute</code> specifies the name and data type of a
* field.</p>
*/
inline const Schema& GetSchema() const{ return m_schema; }
/**
* <p>An array of <code>SchemaAttribute</code> objects that specify the dataset
* fields. Each <code>SchemaAttribute</code> specifies the name and data type of a
* field.</p>
*/
inline void SetSchema(const Schema& value) { m_schema = value; }
/**
* <p>An array of <code>SchemaAttribute</code> objects that specify the dataset
* fields. Each <code>SchemaAttribute</code> specifies the name and data type of a
* field.</p>
*/
inline void SetSchema(Schema&& value) { m_schema = std::move(value); }
/**
* <p>An array of <code>SchemaAttribute</code> objects that specify the dataset
* fields. Each <code>SchemaAttribute</code> specifies the name and data type of a
* field.</p>
*/
inline DescribeDatasetResult& WithSchema(const Schema& value) { SetSchema(value); return *this;}
/**
* <p>An array of <code>SchemaAttribute</code> objects that specify the dataset
* fields. Each <code>SchemaAttribute</code> specifies the name and data type of a
* field.</p>
*/
inline DescribeDatasetResult& WithSchema(Schema&& value) { SetSchema(std::move(value)); return *this;}
/**
* <p>The AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
/**
* <p>The AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfig = value; }
/**
* <p>The AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfig = std::move(value); }
/**
* <p>The AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline DescribeDatasetResult& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;}
/**
* <p>The AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline DescribeDatasetResult& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
/**
* <p>The status of the dataset. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply while data is imported to the dataset
* from a call to the <a>CreateDatasetImportJob</a> operation and reflect the
* status of the dataset import job. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>.</p> <p>The <code>Status</code> of the
* dataset must be <code>ACTIVE</code> before you can import training data.</p>
*
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the dataset. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply while data is imported to the dataset
* from a call to the <a>CreateDatasetImportJob</a> operation and reflect the
* status of the dataset import job. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>.</p> <p>The <code>Status</code> of the
* dataset must be <code>ACTIVE</code> before you can import training data.</p>
*
*/
inline void SetStatus(const Aws::String& value) { m_status = value; }
/**
* <p>The status of the dataset. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply while data is imported to the dataset
* from a call to the <a>CreateDatasetImportJob</a> operation and reflect the
* status of the dataset import job. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>.</p> <p>The <code>Status</code> of the
* dataset must be <code>ACTIVE</code> before you can import training data.</p>
*
*/
inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
/**
* <p>The status of the dataset. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply while data is imported to the dataset
* from a call to the <a>CreateDatasetImportJob</a> operation and reflect the
* status of the dataset import job. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>.</p> <p>The <code>Status</code> of the
* dataset must be <code>ACTIVE</code> before you can import training data.</p>
*
*/
inline void SetStatus(const char* value) { m_status.assign(value); }
/**
* <p>The status of the dataset. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply while data is imported to the dataset
* from a call to the <a>CreateDatasetImportJob</a> operation and reflect the
* status of the dataset import job. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>.</p> <p>The <code>Status</code> of the
* dataset must be <code>ACTIVE</code> before you can import training data.</p>
*
*/
inline DescribeDatasetResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the dataset. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply while data is imported to the dataset
* from a call to the <a>CreateDatasetImportJob</a> operation and reflect the
* status of the dataset import job. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>.</p> <p>The <code>Status</code> of the
* dataset must be <code>ACTIVE</code> before you can import training data.</p>
*
*/
inline DescribeDatasetResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the dataset. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>UPDATE</code> states apply while data is imported to the dataset
* from a call to the <a>CreateDatasetImportJob</a> operation and reflect the
* status of the dataset import job. For example, when the import job status is
* <code>CREATE_IN_PROGRESS</code>, the status of the dataset is
* <code>UPDATE_IN_PROGRESS</code>.</p> <p>The <code>Status</code> of the
* dataset must be <code>ACTIVE</code> before you can import training data.</p>
*
*/
inline DescribeDatasetResult& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>When the dataset was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the dataset was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>When the dataset was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>When the dataset was created.</p>
*/
inline DescribeDatasetResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the dataset was created.</p>
*/
inline DescribeDatasetResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDataset</code> call. After a <a>CreateDatasetImportJob</a>
* operation has finished, <code>LastModificationTime</code> is when the import job
* completed or failed.</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDataset</code> call. After a <a>CreateDatasetImportJob</a>
* operation has finished, <code>LastModificationTime</code> is when the import job
* completed or failed.</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTime = value; }
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDataset</code> call. After a <a>CreateDatasetImportJob</a>
* operation has finished, <code>LastModificationTime</code> is when the import job
* completed or failed.</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTime = std::move(value); }
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDataset</code> call. After a <a>CreateDatasetImportJob</a>
* operation has finished, <code>LastModificationTime</code> is when the import job
* completed or failed.</p>
*/
inline DescribeDatasetResult& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>When you create a dataset, <code>LastModificationTime</code> is the same as
* <code>CreationTime</code>. While data is being imported to the dataset,
* <code>LastModificationTime</code> is the current time of the
* <code>DescribeDataset</code> call. After a <a>CreateDatasetImportJob</a>
* operation has finished, <code>LastModificationTime</code> is when the import job
* completed or failed.</p>
*/
inline DescribeDatasetResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_datasetArn;
Aws::String m_datasetName;
Domain m_domain;
DatasetType m_datasetType;
Aws::String m_dataFrequency;
Schema m_schema;
EncryptionConfig m_encryptionConfig;
Aws::String m_status;
Aws::Utils::DateTime m_creationTime;
Aws::Utils::DateTime m_lastModificationTime;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DescribeForecastExportJobRequest : public ForecastServiceRequest
{
public:
DescribeForecastExportJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeForecastExportJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline const Aws::String& GetForecastExportJobArn() const{ return m_forecastExportJobArn; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline bool ForecastExportJobArnHasBeenSet() const { return m_forecastExportJobArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(const Aws::String& value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(Aws::String&& value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(const char* value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline DescribeForecastExportJobRequest& WithForecastExportJobArn(const Aws::String& value) { SetForecastExportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline DescribeForecastExportJobRequest& WithForecastExportJobArn(Aws::String&& value) { SetForecastExportJobArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline DescribeForecastExportJobRequest& WithForecastExportJobArn(const char* value) { SetForecastExportJobArn(value); return *this;}
private:
Aws::String m_forecastExportJobArn;
bool m_forecastExportJobArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,362 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DataDestination.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API DescribeForecastExportJobResult
{
public:
DescribeForecastExportJobResult();
DescribeForecastExportJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeForecastExportJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN of the forecast export job.</p>
*/
inline const Aws::String& GetForecastExportJobArn() const{ return m_forecastExportJobArn; }
/**
* <p>The ARN of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(const Aws::String& value) { m_forecastExportJobArn = value; }
/**
* <p>The ARN of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(Aws::String&& value) { m_forecastExportJobArn = std::move(value); }
/**
* <p>The ARN of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(const char* value) { m_forecastExportJobArn.assign(value); }
/**
* <p>The ARN of the forecast export job.</p>
*/
inline DescribeForecastExportJobResult& WithForecastExportJobArn(const Aws::String& value) { SetForecastExportJobArn(value); return *this;}
/**
* <p>The ARN of the forecast export job.</p>
*/
inline DescribeForecastExportJobResult& WithForecastExportJobArn(Aws::String&& value) { SetForecastExportJobArn(std::move(value)); return *this;}
/**
* <p>The ARN of the forecast export job.</p>
*/
inline DescribeForecastExportJobResult& WithForecastExportJobArn(const char* value) { SetForecastExportJobArn(value); return *this;}
/**
* <p>The name of the forecast export job.</p>
*/
inline const Aws::String& GetForecastExportJobName() const{ return m_forecastExportJobName; }
/**
* <p>The name of the forecast export job.</p>
*/
inline void SetForecastExportJobName(const Aws::String& value) { m_forecastExportJobName = value; }
/**
* <p>The name of the forecast export job.</p>
*/
inline void SetForecastExportJobName(Aws::String&& value) { m_forecastExportJobName = std::move(value); }
/**
* <p>The name of the forecast export job.</p>
*/
inline void SetForecastExportJobName(const char* value) { m_forecastExportJobName.assign(value); }
/**
* <p>The name of the forecast export job.</p>
*/
inline DescribeForecastExportJobResult& WithForecastExportJobName(const Aws::String& value) { SetForecastExportJobName(value); return *this;}
/**
* <p>The name of the forecast export job.</p>
*/
inline DescribeForecastExportJobResult& WithForecastExportJobName(Aws::String&& value) { SetForecastExportJobName(std::move(value)); return *this;}
/**
* <p>The name of the forecast export job.</p>
*/
inline DescribeForecastExportJobResult& WithForecastExportJobName(const char* value) { SetForecastExportJobName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the exported forecast.</p>
*/
inline const Aws::String& GetForecastArn() const{ return m_forecastArn; }
/**
* <p>The Amazon Resource Name (ARN) of the exported forecast.</p>
*/
inline void SetForecastArn(const Aws::String& value) { m_forecastArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the exported forecast.</p>
*/
inline void SetForecastArn(Aws::String&& value) { m_forecastArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the exported forecast.</p>
*/
inline void SetForecastArn(const char* value) { m_forecastArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the exported forecast.</p>
*/
inline DescribeForecastExportJobResult& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the exported forecast.</p>
*/
inline DescribeForecastExportJobResult& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the exported forecast.</p>
*/
inline DescribeForecastExportJobResult& WithForecastArn(const char* value) { SetForecastArn(value); return *this;}
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline const DataDestination& GetDestination() const{ return m_destination; }
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline void SetDestination(const DataDestination& value) { m_destination = value; }
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline void SetDestination(DataDestination&& value) { m_destination = std::move(value); }
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline DescribeForecastExportJobResult& WithDestination(const DataDestination& value) { SetDestination(value); return *this;}
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline DescribeForecastExportJobResult& WithDestination(DataDestination&& value) { SetDestination(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_message = value; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_message = std::move(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const char* value) { m_message.assign(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeForecastExportJobResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeForecastExportJobResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeForecastExportJobResult& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline void SetStatus(const Aws::String& value) { m_status = value; }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline void SetStatus(const char* value) { m_status.assign(value); }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline DescribeForecastExportJobResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline DescribeForecastExportJobResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline DescribeForecastExportJobResult& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>When the forecast export job was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the forecast export job was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>When the forecast export job was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>When the forecast export job was created.</p>
*/
inline DescribeForecastExportJobResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the forecast export job was created.</p>
*/
inline DescribeForecastExportJobResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>When the last successful export job finished.</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>When the last successful export job finished.</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTime = value; }
/**
* <p>When the last successful export job finished.</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTime = std::move(value); }
/**
* <p>When the last successful export job finished.</p>
*/
inline DescribeForecastExportJobResult& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>When the last successful export job finished.</p>
*/
inline DescribeForecastExportJobResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_forecastExportJobArn;
Aws::String m_forecastExportJobName;
Aws::String m_forecastArn;
DataDestination m_destination;
Aws::String m_message;
Aws::String m_status;
Aws::Utils::DateTime m_creationTime;
Aws::Utils::DateTime m_lastModificationTime;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DescribeForecastRequest : public ForecastServiceRequest
{
public:
DescribeForecastRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeForecast"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline const Aws::String& GetForecastArn() const{ return m_forecastArn; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline bool ForecastArnHasBeenSet() const { return m_forecastArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline void SetForecastArn(const Aws::String& value) { m_forecastArnHasBeenSet = true; m_forecastArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline void SetForecastArn(Aws::String&& value) { m_forecastArnHasBeenSet = true; m_forecastArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline void SetForecastArn(const char* value) { m_forecastArnHasBeenSet = true; m_forecastArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline DescribeForecastRequest& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline DescribeForecastRequest& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast.</p>
*/
inline DescribeForecastRequest& WithForecastArn(const char* value) { SetForecastArn(value); return *this;}
private:
Aws::String m_forecastArn;
bool m_forecastArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,437 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_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 <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API DescribeForecastResult
{
public:
DescribeForecastResult();
DescribeForecastResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeForecastResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The forecast ARN as specified in the request.</p>
*/
inline const Aws::String& GetForecastArn() const{ return m_forecastArn; }
/**
* <p>The forecast ARN as specified in the request.</p>
*/
inline void SetForecastArn(const Aws::String& value) { m_forecastArn = value; }
/**
* <p>The forecast ARN as specified in the request.</p>
*/
inline void SetForecastArn(Aws::String&& value) { m_forecastArn = std::move(value); }
/**
* <p>The forecast ARN as specified in the request.</p>
*/
inline void SetForecastArn(const char* value) { m_forecastArn.assign(value); }
/**
* <p>The forecast ARN as specified in the request.</p>
*/
inline DescribeForecastResult& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;}
/**
* <p>The forecast ARN as specified in the request.</p>
*/
inline DescribeForecastResult& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;}
/**
* <p>The forecast ARN as specified in the request.</p>
*/
inline DescribeForecastResult& WithForecastArn(const char* value) { SetForecastArn(value); return *this;}
/**
* <p>The name of the forecast.</p>
*/
inline const Aws::String& GetForecastName() const{ return m_forecastName; }
/**
* <p>The name of the forecast.</p>
*/
inline void SetForecastName(const Aws::String& value) { m_forecastName = value; }
/**
* <p>The name of the forecast.</p>
*/
inline void SetForecastName(Aws::String&& value) { m_forecastName = std::move(value); }
/**
* <p>The name of the forecast.</p>
*/
inline void SetForecastName(const char* value) { m_forecastName.assign(value); }
/**
* <p>The name of the forecast.</p>
*/
inline DescribeForecastResult& WithForecastName(const Aws::String& value) { SetForecastName(value); return *this;}
/**
* <p>The name of the forecast.</p>
*/
inline DescribeForecastResult& WithForecastName(Aws::String&& value) { SetForecastName(std::move(value)); return *this;}
/**
* <p>The name of the forecast.</p>
*/
inline DescribeForecastResult& WithForecastName(const char* value) { SetForecastName(value); return *this;}
/**
* <p>The quantiles at which probabilistic forecasts were generated.</p>
*/
inline const Aws::Vector<Aws::String>& GetForecastTypes() const{ return m_forecastTypes; }
/**
* <p>The quantiles at which probabilistic forecasts were generated.</p>
*/
inline void SetForecastTypes(const Aws::Vector<Aws::String>& value) { m_forecastTypes = value; }
/**
* <p>The quantiles at which probabilistic forecasts were generated.</p>
*/
inline void SetForecastTypes(Aws::Vector<Aws::String>&& value) { m_forecastTypes = std::move(value); }
/**
* <p>The quantiles at which probabilistic forecasts were generated.</p>
*/
inline DescribeForecastResult& WithForecastTypes(const Aws::Vector<Aws::String>& value) { SetForecastTypes(value); return *this;}
/**
* <p>The quantiles at which probabilistic forecasts were generated.</p>
*/
inline DescribeForecastResult& WithForecastTypes(Aws::Vector<Aws::String>&& value) { SetForecastTypes(std::move(value)); return *this;}
/**
* <p>The quantiles at which probabilistic forecasts were generated.</p>
*/
inline DescribeForecastResult& AddForecastTypes(const Aws::String& value) { m_forecastTypes.push_back(value); return *this; }
/**
* <p>The quantiles at which probabilistic forecasts were generated.</p>
*/
inline DescribeForecastResult& AddForecastTypes(Aws::String&& value) { m_forecastTypes.push_back(std::move(value)); return *this; }
/**
* <p>The quantiles at which probabilistic forecasts were generated.</p>
*/
inline DescribeForecastResult& AddForecastTypes(const char* value) { m_forecastTypes.push_back(value); return *this; }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArn = value; }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArn = std::move(value); }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArn.assign(value); }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline DescribeForecastResult& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline DescribeForecastResult& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline DescribeForecastResult& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
/**
* <p>The ARN of the dataset group that provided the data used to train the
* predictor.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The ARN of the dataset group that provided the data used to train the
* predictor.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArn = value; }
/**
* <p>The ARN of the dataset group that provided the data used to train the
* predictor.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArn = std::move(value); }
/**
* <p>The ARN of the dataset group that provided the data used to train the
* predictor.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArn.assign(value); }
/**
* <p>The ARN of the dataset group that provided the data used to train the
* predictor.</p>
*/
inline DescribeForecastResult& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The ARN of the dataset group that provided the data used to train the
* predictor.</p>
*/
inline DescribeForecastResult& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The ARN of the dataset group that provided the data used to train the
* predictor.</p>
*/
inline DescribeForecastResult& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline void SetStatus(const Aws::String& value) { m_status = value; }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline void SetStatus(const char* value) { m_status.assign(value); }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline DescribeForecastResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline DescribeForecastResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline DescribeForecastResult& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_message = value; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_message = std::move(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const char* value) { m_message.assign(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeForecastResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeForecastResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribeForecastResult& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>When the forecast creation task was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the forecast creation task was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>When the forecast creation task was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>When the forecast creation task was created.</p>
*/
inline DescribeForecastResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the forecast creation task was created.</p>
*/
inline DescribeForecastResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTime = value; }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTime = std::move(value); }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline DescribeForecastResult& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline DescribeForecastResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_forecastArn;
Aws::String m_forecastName;
Aws::Vector<Aws::String> m_forecastTypes;
Aws::String m_predictorArn;
Aws::String m_datasetGroupArn;
Aws::String m_status;
Aws::String m_message;
Aws::Utils::DateTime m_creationTime;
Aws::Utils::DateTime m_lastModificationTime;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API DescribePredictorRequest : public ForecastServiceRequest
{
public:
DescribePredictorRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribePredictor"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the predictor that you want information
* about.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor that you want information
* about.</p>
*/
inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor that you want information
* about.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor that you want information
* about.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor that you want information
* about.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor that you want information
* about.</p>
*/
inline DescribePredictorRequest& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor that you want information
* about.</p>
*/
inline DescribePredictorRequest& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor that you want information
* about.</p>
*/
inline DescribePredictorRequest& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
private:
Aws::String m_predictorArn;
bool m_predictorArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,827 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/forecast/model/EvaluationParameters.h>
#include <aws/forecast/model/HyperParameterTuningJobConfig.h>
#include <aws/forecast/model/InputDataConfig.h>
#include <aws/forecast/model/FeaturizationConfig.h>
#include <aws/forecast/model/EncryptionConfig.h>
#include <aws/forecast/model/PredictorExecutionDetails.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API DescribePredictorResult
{
public:
DescribePredictorResult();
DescribePredictorResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribePredictorResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN of the predictor.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The ARN of the predictor.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArn = value; }
/**
* <p>The ARN of the predictor.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArn = std::move(value); }
/**
* <p>The ARN of the predictor.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArn.assign(value); }
/**
* <p>The ARN of the predictor.</p>
*/
inline DescribePredictorResult& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The ARN of the predictor.</p>
*/
inline DescribePredictorResult& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The ARN of the predictor.</p>
*/
inline DescribePredictorResult& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
/**
* <p>The name of the predictor.</p>
*/
inline const Aws::String& GetPredictorName() const{ return m_predictorName; }
/**
* <p>The name of the predictor.</p>
*/
inline void SetPredictorName(const Aws::String& value) { m_predictorName = value; }
/**
* <p>The name of the predictor.</p>
*/
inline void SetPredictorName(Aws::String&& value) { m_predictorName = std::move(value); }
/**
* <p>The name of the predictor.</p>
*/
inline void SetPredictorName(const char* value) { m_predictorName.assign(value); }
/**
* <p>The name of the predictor.</p>
*/
inline DescribePredictorResult& WithPredictorName(const Aws::String& value) { SetPredictorName(value); return *this;}
/**
* <p>The name of the predictor.</p>
*/
inline DescribePredictorResult& WithPredictorName(Aws::String&& value) { SetPredictorName(std::move(value)); return *this;}
/**
* <p>The name of the predictor.</p>
*/
inline DescribePredictorResult& WithPredictorName(const char* value) { SetPredictorName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the algorithm used for model training.</p>
*/
inline const Aws::String& GetAlgorithmArn() const{ return m_algorithmArn; }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm used for model training.</p>
*/
inline void SetAlgorithmArn(const Aws::String& value) { m_algorithmArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm used for model training.</p>
*/
inline void SetAlgorithmArn(Aws::String&& value) { m_algorithmArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm used for model training.</p>
*/
inline void SetAlgorithmArn(const char* value) { m_algorithmArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm used for model training.</p>
*/
inline DescribePredictorResult& WithAlgorithmArn(const Aws::String& value) { SetAlgorithmArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the algorithm used for model training.</p>
*/
inline DescribePredictorResult& WithAlgorithmArn(Aws::String&& value) { SetAlgorithmArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the algorithm used for model training.</p>
*/
inline DescribePredictorResult& WithAlgorithmArn(const char* value) { SetAlgorithmArn(value); return *this;}
/**
* <p>The number of time-steps of the forecast. The forecast horizon is also called
* the prediction length.</p>
*/
inline int GetForecastHorizon() const{ return m_forecastHorizon; }
/**
* <p>The number of time-steps of the forecast. The forecast horizon is also called
* the prediction length.</p>
*/
inline void SetForecastHorizon(int value) { m_forecastHorizon = value; }
/**
* <p>The number of time-steps of the forecast. The forecast horizon is also called
* the prediction length.</p>
*/
inline DescribePredictorResult& WithForecastHorizon(int value) { SetForecastHorizon(value); return *this;}
/**
* <p>Whether the predictor is set to perform AutoML.</p>
*/
inline bool GetPerformAutoML() const{ return m_performAutoML; }
/**
* <p>Whether the predictor is set to perform AutoML.</p>
*/
inline void SetPerformAutoML(bool value) { m_performAutoML = value; }
/**
* <p>Whether the predictor is set to perform AutoML.</p>
*/
inline DescribePredictorResult& WithPerformAutoML(bool value) { SetPerformAutoML(value); return *this;}
/**
* <p>Whether the predictor is set to perform hyperparameter optimization
* (HPO).</p>
*/
inline bool GetPerformHPO() const{ return m_performHPO; }
/**
* <p>Whether the predictor is set to perform hyperparameter optimization
* (HPO).</p>
*/
inline void SetPerformHPO(bool value) { m_performHPO = value; }
/**
* <p>Whether the predictor is set to perform hyperparameter optimization
* (HPO).</p>
*/
inline DescribePredictorResult& WithPerformHPO(bool value) { SetPerformHPO(value); return *this;}
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const{ return m_trainingParameters; }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline void SetTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_trainingParameters = value; }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline void SetTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_trainingParameters = std::move(value); }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& WithTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetTrainingParameters(value); return *this;}
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& WithTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetTrainingParameters(std::move(value)); return *this;}
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& AddTrainingParameters(const Aws::String& key, const Aws::String& value) { m_trainingParameters.emplace(key, value); return *this; }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& AddTrainingParameters(Aws::String&& key, const Aws::String& value) { m_trainingParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& AddTrainingParameters(const Aws::String& key, Aws::String&& value) { m_trainingParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& AddTrainingParameters(Aws::String&& key, Aws::String&& value) { m_trainingParameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& AddTrainingParameters(const char* key, Aws::String&& value) { m_trainingParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& AddTrainingParameters(Aws::String&& key, const char* value) { m_trainingParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The default training parameters or overrides selected during model training.
* If using the AutoML algorithm or if HPO is turned on while using the DeepAR+
* algorithms, the optimized values for the chosen hyperparameters are returned.
* For more information, see <a>aws-forecast-choosing-recipes</a>.</p>
*/
inline DescribePredictorResult& AddTrainingParameters(const char* key, const char* value) { m_trainingParameters.emplace(key, value); return *this; }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline const EvaluationParameters& GetEvaluationParameters() const{ return m_evaluationParameters; }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline void SetEvaluationParameters(const EvaluationParameters& value) { m_evaluationParameters = value; }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline void SetEvaluationParameters(EvaluationParameters&& value) { m_evaluationParameters = std::move(value); }
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline DescribePredictorResult& WithEvaluationParameters(const EvaluationParameters& value) { SetEvaluationParameters(value); return *this;}
/**
* <p>Used to override the default evaluation parameters of the specified
* algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into
* training data and testing data. The evaluation parameters define how to perform
* the split and the number of iterations.</p>
*/
inline DescribePredictorResult& WithEvaluationParameters(EvaluationParameters&& value) { SetEvaluationParameters(std::move(value)); return *this;}
/**
* <p>The hyperparameter override values for the algorithm.</p>
*/
inline const HyperParameterTuningJobConfig& GetHPOConfig() const{ return m_hPOConfig; }
/**
* <p>The hyperparameter override values for the algorithm.</p>
*/
inline void SetHPOConfig(const HyperParameterTuningJobConfig& value) { m_hPOConfig = value; }
/**
* <p>The hyperparameter override values for the algorithm.</p>
*/
inline void SetHPOConfig(HyperParameterTuningJobConfig&& value) { m_hPOConfig = std::move(value); }
/**
* <p>The hyperparameter override values for the algorithm.</p>
*/
inline DescribePredictorResult& WithHPOConfig(const HyperParameterTuningJobConfig& value) { SetHPOConfig(value); return *this;}
/**
* <p>The hyperparameter override values for the algorithm.</p>
*/
inline DescribePredictorResult& WithHPOConfig(HyperParameterTuningJobConfig&& value) { SetHPOConfig(std::move(value)); return *this;}
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfig = value; }
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfig = std::move(value); }
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline DescribePredictorResult& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>Describes the dataset group that contains the data to use to train the
* predictor.</p>
*/
inline DescribePredictorResult& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>The featurization configuration.</p>
*/
inline const FeaturizationConfig& GetFeaturizationConfig() const{ return m_featurizationConfig; }
/**
* <p>The featurization configuration.</p>
*/
inline void SetFeaturizationConfig(const FeaturizationConfig& value) { m_featurizationConfig = value; }
/**
* <p>The featurization configuration.</p>
*/
inline void SetFeaturizationConfig(FeaturizationConfig&& value) { m_featurizationConfig = std::move(value); }
/**
* <p>The featurization configuration.</p>
*/
inline DescribePredictorResult& WithFeaturizationConfig(const FeaturizationConfig& value) { SetFeaturizationConfig(value); return *this;}
/**
* <p>The featurization configuration.</p>
*/
inline DescribePredictorResult& WithFeaturizationConfig(FeaturizationConfig&& value) { SetFeaturizationConfig(std::move(value)); return *this;}
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfig = value; }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfig = std::move(value); }
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline DescribePredictorResult& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;}
/**
* <p>An AWS Key Management Service (KMS) key and the AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key.</p>
*/
inline DescribePredictorResult& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
/**
* <p>Details on the the status and results of the backtests performed to evaluate
* the accuracy of the predictor. You specify the number of backtests to perform
* when you call the operation.</p>
*/
inline const PredictorExecutionDetails& GetPredictorExecutionDetails() const{ return m_predictorExecutionDetails; }
/**
* <p>Details on the the status and results of the backtests performed to evaluate
* the accuracy of the predictor. You specify the number of backtests to perform
* when you call the operation.</p>
*/
inline void SetPredictorExecutionDetails(const PredictorExecutionDetails& value) { m_predictorExecutionDetails = value; }
/**
* <p>Details on the the status and results of the backtests performed to evaluate
* the accuracy of the predictor. You specify the number of backtests to perform
* when you call the operation.</p>
*/
inline void SetPredictorExecutionDetails(PredictorExecutionDetails&& value) { m_predictorExecutionDetails = std::move(value); }
/**
* <p>Details on the the status and results of the backtests performed to evaluate
* the accuracy of the predictor. You specify the number of backtests to perform
* when you call the operation.</p>
*/
inline DescribePredictorResult& WithPredictorExecutionDetails(const PredictorExecutionDetails& value) { SetPredictorExecutionDetails(value); return *this;}
/**
* <p>Details on the the status and results of the backtests performed to evaluate
* the accuracy of the predictor. You specify the number of backtests to perform
* when you call the operation.</p>
*/
inline DescribePredictorResult& WithPredictorExecutionDetails(PredictorExecutionDetails&& value) { SetPredictorExecutionDetails(std::move(value)); return *this;}
/**
* <p>An array of the ARNs of the dataset import jobs used to import training data
* for the predictor.</p>
*/
inline const Aws::Vector<Aws::String>& GetDatasetImportJobArns() const{ return m_datasetImportJobArns; }
/**
* <p>An array of the ARNs of the dataset import jobs used to import training data
* for the predictor.</p>
*/
inline void SetDatasetImportJobArns(const Aws::Vector<Aws::String>& value) { m_datasetImportJobArns = value; }
/**
* <p>An array of the ARNs of the dataset import jobs used to import training data
* for the predictor.</p>
*/
inline void SetDatasetImportJobArns(Aws::Vector<Aws::String>&& value) { m_datasetImportJobArns = std::move(value); }
/**
* <p>An array of the ARNs of the dataset import jobs used to import training data
* for the predictor.</p>
*/
inline DescribePredictorResult& WithDatasetImportJobArns(const Aws::Vector<Aws::String>& value) { SetDatasetImportJobArns(value); return *this;}
/**
* <p>An array of the ARNs of the dataset import jobs used to import training data
* for the predictor.</p>
*/
inline DescribePredictorResult& WithDatasetImportJobArns(Aws::Vector<Aws::String>&& value) { SetDatasetImportJobArns(std::move(value)); return *this;}
/**
* <p>An array of the ARNs of the dataset import jobs used to import training data
* for the predictor.</p>
*/
inline DescribePredictorResult& AddDatasetImportJobArns(const Aws::String& value) { m_datasetImportJobArns.push_back(value); return *this; }
/**
* <p>An array of the ARNs of the dataset import jobs used to import training data
* for the predictor.</p>
*/
inline DescribePredictorResult& AddDatasetImportJobArns(Aws::String&& value) { m_datasetImportJobArns.push_back(std::move(value)); return *this; }
/**
* <p>An array of the ARNs of the dataset import jobs used to import training data
* for the predictor.</p>
*/
inline DescribePredictorResult& AddDatasetImportJobArns(const char* value) { m_datasetImportJobArns.push_back(value); return *this; }
/**
* <p>When <code>PerformAutoML</code> is specified, the ARN of the chosen
* algorithm.</p>
*/
inline const Aws::Vector<Aws::String>& GetAutoMLAlgorithmArns() const{ return m_autoMLAlgorithmArns; }
/**
* <p>When <code>PerformAutoML</code> is specified, the ARN of the chosen
* algorithm.</p>
*/
inline void SetAutoMLAlgorithmArns(const Aws::Vector<Aws::String>& value) { m_autoMLAlgorithmArns = value; }
/**
* <p>When <code>PerformAutoML</code> is specified, the ARN of the chosen
* algorithm.</p>
*/
inline void SetAutoMLAlgorithmArns(Aws::Vector<Aws::String>&& value) { m_autoMLAlgorithmArns = std::move(value); }
/**
* <p>When <code>PerformAutoML</code> is specified, the ARN of the chosen
* algorithm.</p>
*/
inline DescribePredictorResult& WithAutoMLAlgorithmArns(const Aws::Vector<Aws::String>& value) { SetAutoMLAlgorithmArns(value); return *this;}
/**
* <p>When <code>PerformAutoML</code> is specified, the ARN of the chosen
* algorithm.</p>
*/
inline DescribePredictorResult& WithAutoMLAlgorithmArns(Aws::Vector<Aws::String>&& value) { SetAutoMLAlgorithmArns(std::move(value)); return *this;}
/**
* <p>When <code>PerformAutoML</code> is specified, the ARN of the chosen
* algorithm.</p>
*/
inline DescribePredictorResult& AddAutoMLAlgorithmArns(const Aws::String& value) { m_autoMLAlgorithmArns.push_back(value); return *this; }
/**
* <p>When <code>PerformAutoML</code> is specified, the ARN of the chosen
* algorithm.</p>
*/
inline DescribePredictorResult& AddAutoMLAlgorithmArns(Aws::String&& value) { m_autoMLAlgorithmArns.push_back(std::move(value)); return *this; }
/**
* <p>When <code>PerformAutoML</code> is specified, the ARN of the chosen
* algorithm.</p>
*/
inline DescribePredictorResult& AddAutoMLAlgorithmArns(const char* value) { m_autoMLAlgorithmArns.push_back(value); return *this; }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline void SetStatus(const Aws::String& value) { m_status = value; }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline void SetStatus(const char* value) { m_status.assign(value); }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline DescribePredictorResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline DescribePredictorResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline DescribePredictorResult& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_message = value; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_message = std::move(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const char* value) { m_message.assign(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribePredictorResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribePredictorResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline DescribePredictorResult& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>When the model training task was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the model training task was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>When the model training task was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>When the model training task was created.</p>
*/
inline DescribePredictorResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the model training task was created.</p>
*/
inline DescribePredictorResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>Initially, the same as <code>CreationTime</code> (when the status is
* <code>CREATE_PENDING</code>). This value is updated when training starts (when
* the status changes to <code>CREATE_IN_PROGRESS</code>), and when training has
* completed (when the status changes to <code>ACTIVE</code>) or fails (when the
* status changes to <code>CREATE_FAILED</code>).</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>Initially, the same as <code>CreationTime</code> (when the status is
* <code>CREATE_PENDING</code>). This value is updated when training starts (when
* the status changes to <code>CREATE_IN_PROGRESS</code>), and when training has
* completed (when the status changes to <code>ACTIVE</code>) or fails (when the
* status changes to <code>CREATE_FAILED</code>).</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTime = value; }
/**
* <p>Initially, the same as <code>CreationTime</code> (when the status is
* <code>CREATE_PENDING</code>). This value is updated when training starts (when
* the status changes to <code>CREATE_IN_PROGRESS</code>), and when training has
* completed (when the status changes to <code>ACTIVE</code>) or fails (when the
* status changes to <code>CREATE_FAILED</code>).</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTime = std::move(value); }
/**
* <p>Initially, the same as <code>CreationTime</code> (when the status is
* <code>CREATE_PENDING</code>). This value is updated when training starts (when
* the status changes to <code>CREATE_IN_PROGRESS</code>), and when training has
* completed (when the status changes to <code>ACTIVE</code>) or fails (when the
* status changes to <code>CREATE_FAILED</code>).</p>
*/
inline DescribePredictorResult& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>Initially, the same as <code>CreationTime</code> (when the status is
* <code>CREATE_PENDING</code>). This value is updated when training starts (when
* the status changes to <code>CREATE_IN_PROGRESS</code>), and when training has
* completed (when the status changes to <code>ACTIVE</code>) or fails (when the
* status changes to <code>CREATE_FAILED</code>).</p>
*/
inline DescribePredictorResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_predictorArn;
Aws::String m_predictorName;
Aws::String m_algorithmArn;
int m_forecastHorizon;
bool m_performAutoML;
bool m_performHPO;
Aws::Map<Aws::String, Aws::String> m_trainingParameters;
EvaluationParameters m_evaluationParameters;
HyperParameterTuningJobConfig m_hPOConfig;
InputDataConfig m_inputDataConfig;
FeaturizationConfig m_featurizationConfig;
EncryptionConfig m_encryptionConfig;
PredictorExecutionDetails m_predictorExecutionDetails;
Aws::Vector<Aws::String> m_datasetImportJobArns;
Aws::Vector<Aws::String> m_autoMLAlgorithmArns;
Aws::String m_status;
Aws::String m_message;
Aws::Utils::DateTime m_creationTime;
Aws::Utils::DateTime m_lastModificationTime;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
enum class Domain
{
NOT_SET,
RETAIL,
CUSTOM,
INVENTORY_PLANNING,
EC2_CAPACITY,
WORK_FORCE,
WEB_TRAFFIC,
METRICS
};
namespace DomainMapper
{
AWS_FORECASTSERVICE_API Domain GetDomainForName(const Aws::String& name);
AWS_FORECASTSERVICE_API Aws::String GetNameForDomain(Domain value);
} // namespace DomainMapper
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>An AWS Key Management Service (KMS) key and an AWS Identity and Access
* Management (IAM) role that Amazon Forecast can assume to access the key. You can
* specify this optional object in the <a>CreateDataset</a> and
* <a>CreatePredictor</a> requests.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/EncryptionConfig">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API EncryptionConfig
{
public:
EncryptionConfig();
EncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
EncryptionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline EncryptionConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline EncryptionConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline EncryptionConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS key.</p>
*/
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key.</p>
*/
inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key.</p>
*/
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key.</p>
*/
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key.</p>
*/
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key.</p>
*/
inline EncryptionConfig& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS key.</p>
*/
inline EncryptionConfig& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS key.</p>
*/
inline EncryptionConfig& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
private:
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::String m_kMSKeyArn;
bool m_kMSKeyArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,125 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Parameters that define how to split a dataset into training data and testing
* data, and the number of iterations to perform. These parameters are specified in
* the predefined algorithms but you can override them in the
* <a>CreatePredictor</a> request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/EvaluationParameters">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API EvaluationParameters
{
public:
EvaluationParameters();
EvaluationParameters(Aws::Utils::Json::JsonView jsonValue);
EvaluationParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of times to split the input data. The default is 1. Valid values
* are 1 through 5.</p>
*/
inline int GetNumberOfBacktestWindows() const{ return m_numberOfBacktestWindows; }
/**
* <p>The number of times to split the input data. The default is 1. Valid values
* are 1 through 5.</p>
*/
inline bool NumberOfBacktestWindowsHasBeenSet() const { return m_numberOfBacktestWindowsHasBeenSet; }
/**
* <p>The number of times to split the input data. The default is 1. Valid values
* are 1 through 5.</p>
*/
inline void SetNumberOfBacktestWindows(int value) { m_numberOfBacktestWindowsHasBeenSet = true; m_numberOfBacktestWindows = value; }
/**
* <p>The number of times to split the input data. The default is 1. Valid values
* are 1 through 5.</p>
*/
inline EvaluationParameters& WithNumberOfBacktestWindows(int value) { SetNumberOfBacktestWindows(value); return *this;}
/**
* <p>The point from the end of the dataset where you want to split the data for
* model training and testing (evaluation). Specify the value as the number of data
* points. The default is the value of the forecast horizon.
* <code>BackTestWindowOffset</code> can be used to mimic a past virtual forecast
* start date. This value must be greater than or equal to the forecast horizon and
* less than half of the TARGET_TIME_SERIES dataset length.</p> <p>
* <code>ForecastHorizon</code> &lt;= <code>BackTestWindowOffset</code> &lt; 1/2 *
* TARGET_TIME_SERIES dataset length</p>
*/
inline int GetBackTestWindowOffset() const{ return m_backTestWindowOffset; }
/**
* <p>The point from the end of the dataset where you want to split the data for
* model training and testing (evaluation). Specify the value as the number of data
* points. The default is the value of the forecast horizon.
* <code>BackTestWindowOffset</code> can be used to mimic a past virtual forecast
* start date. This value must be greater than or equal to the forecast horizon and
* less than half of the TARGET_TIME_SERIES dataset length.</p> <p>
* <code>ForecastHorizon</code> &lt;= <code>BackTestWindowOffset</code> &lt; 1/2 *
* TARGET_TIME_SERIES dataset length</p>
*/
inline bool BackTestWindowOffsetHasBeenSet() const { return m_backTestWindowOffsetHasBeenSet; }
/**
* <p>The point from the end of the dataset where you want to split the data for
* model training and testing (evaluation). Specify the value as the number of data
* points. The default is the value of the forecast horizon.
* <code>BackTestWindowOffset</code> can be used to mimic a past virtual forecast
* start date. This value must be greater than or equal to the forecast horizon and
* less than half of the TARGET_TIME_SERIES dataset length.</p> <p>
* <code>ForecastHorizon</code> &lt;= <code>BackTestWindowOffset</code> &lt; 1/2 *
* TARGET_TIME_SERIES dataset length</p>
*/
inline void SetBackTestWindowOffset(int value) { m_backTestWindowOffsetHasBeenSet = true; m_backTestWindowOffset = value; }
/**
* <p>The point from the end of the dataset where you want to split the data for
* model training and testing (evaluation). Specify the value as the number of data
* points. The default is the value of the forecast horizon.
* <code>BackTestWindowOffset</code> can be used to mimic a past virtual forecast
* start date. This value must be greater than or equal to the forecast horizon and
* less than half of the TARGET_TIME_SERIES dataset length.</p> <p>
* <code>ForecastHorizon</code> &lt;= <code>BackTestWindowOffset</code> &lt; 1/2 *
* TARGET_TIME_SERIES dataset length</p>
*/
inline EvaluationParameters& WithBackTestWindowOffset(int value) { SetBackTestWindowOffset(value); return *this;}
private:
int m_numberOfBacktestWindows;
bool m_numberOfBacktestWindowsHasBeenSet;
int m_backTestWindowOffset;
bool m_backTestWindowOffsetHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/WindowSummary.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The results of evaluating an algorithm. Returned as part of the
* <a>GetAccuracyMetrics</a> response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/EvaluationResult">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API EvaluationResult
{
public:
EvaluationResult();
EvaluationResult(Aws::Utils::Json::JsonView jsonValue);
EvaluationResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the algorithm that was evaluated.</p>
*/
inline const Aws::String& GetAlgorithmArn() const{ return m_algorithmArn; }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm that was evaluated.</p>
*/
inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm that was evaluated.</p>
*/
inline void SetAlgorithmArn(const Aws::String& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm that was evaluated.</p>
*/
inline void SetAlgorithmArn(Aws::String&& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm that was evaluated.</p>
*/
inline void SetAlgorithmArn(const char* value) { m_algorithmArnHasBeenSet = true; m_algorithmArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the algorithm that was evaluated.</p>
*/
inline EvaluationResult& WithAlgorithmArn(const Aws::String& value) { SetAlgorithmArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the algorithm that was evaluated.</p>
*/
inline EvaluationResult& WithAlgorithmArn(Aws::String&& value) { SetAlgorithmArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the algorithm that was evaluated.</p>
*/
inline EvaluationResult& WithAlgorithmArn(const char* value) { SetAlgorithmArn(value); return *this;}
/**
* <p>The array of test windows used for evaluating the algorithm. The
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
* determines the number of windows in the array.</p>
*/
inline const Aws::Vector<WindowSummary>& GetTestWindows() const{ return m_testWindows; }
/**
* <p>The array of test windows used for evaluating the algorithm. The
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
* determines the number of windows in the array.</p>
*/
inline bool TestWindowsHasBeenSet() const { return m_testWindowsHasBeenSet; }
/**
* <p>The array of test windows used for evaluating the algorithm. The
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
* determines the number of windows in the array.</p>
*/
inline void SetTestWindows(const Aws::Vector<WindowSummary>& value) { m_testWindowsHasBeenSet = true; m_testWindows = value; }
/**
* <p>The array of test windows used for evaluating the algorithm. The
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
* determines the number of windows in the array.</p>
*/
inline void SetTestWindows(Aws::Vector<WindowSummary>&& value) { m_testWindowsHasBeenSet = true; m_testWindows = std::move(value); }
/**
* <p>The array of test windows used for evaluating the algorithm. The
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
* determines the number of windows in the array.</p>
*/
inline EvaluationResult& WithTestWindows(const Aws::Vector<WindowSummary>& value) { SetTestWindows(value); return *this;}
/**
* <p>The array of test windows used for evaluating the algorithm. The
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
* determines the number of windows in the array.</p>
*/
inline EvaluationResult& WithTestWindows(Aws::Vector<WindowSummary>&& value) { SetTestWindows(std::move(value)); return *this;}
/**
* <p>The array of test windows used for evaluating the algorithm. The
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
* determines the number of windows in the array.</p>
*/
inline EvaluationResult& AddTestWindows(const WindowSummary& value) { m_testWindowsHasBeenSet = true; m_testWindows.push_back(value); return *this; }
/**
* <p>The array of test windows used for evaluating the algorithm. The
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
* determines the number of windows in the array.</p>
*/
inline EvaluationResult& AddTestWindows(WindowSummary&& value) { m_testWindowsHasBeenSet = true; m_testWindows.push_back(std::move(value)); return *this; }
private:
Aws::String m_algorithmArn;
bool m_algorithmArnHasBeenSet;
Aws::Vector<WindowSummary> m_testWindows;
bool m_testWindowsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
enum class EvaluationType
{
NOT_SET,
SUMMARY,
COMPUTED
};
namespace EvaluationTypeMapper
{
AWS_FORECASTSERVICE_API EvaluationType GetEvaluationTypeForName(const Aws::String& name);
AWS_FORECASTSERVICE_API Aws::String GetNameForEvaluationType(EvaluationType value);
} // namespace EvaluationTypeMapper
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,196 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/FeaturizationMethod.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides featurization (transformation) information for a dataset field. This
* object is part of the <a>FeaturizationConfig</a> object.</p> <p>For example:</p>
* <p> <code>{</code> </p> <p> <code>"AttributeName": "demand",</code> </p> <p>
* <code>FeaturizationPipeline [ {</code> </p> <p> <code>"FeaturizationMethodName":
* "filling",</code> </p> <p> <code>"FeaturizationMethodParameters":
* {"aggregation": "avg", "backfill": "nan"}</code> </p> <p> <code>} ]</code> </p>
* <p> <code>}</code> </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/Featurization">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API Featurization
{
public:
Featurization();
Featurization(Aws::Utils::Json::JsonView jsonValue);
Featurization& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the schema attribute that specifies the data field to be
* featurized. Amazon Forecast supports the target field of the
* <code>TARGET_TIME_SERIES</code> and the <code>RELATED_TIME_SERIES</code>
* datasets. For example, for the <code>RETAIL</code> domain, the target is
* <code>demand</code>, and for the <code>CUSTOM</code> domain, the target is
* <code>target_value</code>. For more information, see
* <a>howitworks-missing-values</a>.</p>
*/
inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
/**
* <p>The name of the schema attribute that specifies the data field to be
* featurized. Amazon Forecast supports the target field of the
* <code>TARGET_TIME_SERIES</code> and the <code>RELATED_TIME_SERIES</code>
* datasets. For example, for the <code>RETAIL</code> domain, the target is
* <code>demand</code>, and for the <code>CUSTOM</code> domain, the target is
* <code>target_value</code>. For more information, see
* <a>howitworks-missing-values</a>.</p>
*/
inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
/**
* <p>The name of the schema attribute that specifies the data field to be
* featurized. Amazon Forecast supports the target field of the
* <code>TARGET_TIME_SERIES</code> and the <code>RELATED_TIME_SERIES</code>
* datasets. For example, for the <code>RETAIL</code> domain, the target is
* <code>demand</code>, and for the <code>CUSTOM</code> domain, the target is
* <code>target_value</code>. For more information, see
* <a>howitworks-missing-values</a>.</p>
*/
inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
/**
* <p>The name of the schema attribute that specifies the data field to be
* featurized. Amazon Forecast supports the target field of the
* <code>TARGET_TIME_SERIES</code> and the <code>RELATED_TIME_SERIES</code>
* datasets. For example, for the <code>RETAIL</code> domain, the target is
* <code>demand</code>, and for the <code>CUSTOM</code> domain, the target is
* <code>target_value</code>. For more information, see
* <a>howitworks-missing-values</a>.</p>
*/
inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
/**
* <p>The name of the schema attribute that specifies the data field to be
* featurized. Amazon Forecast supports the target field of the
* <code>TARGET_TIME_SERIES</code> and the <code>RELATED_TIME_SERIES</code>
* datasets. For example, for the <code>RETAIL</code> domain, the target is
* <code>demand</code>, and for the <code>CUSTOM</code> domain, the target is
* <code>target_value</code>. For more information, see
* <a>howitworks-missing-values</a>.</p>
*/
inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
/**
* <p>The name of the schema attribute that specifies the data field to be
* featurized. Amazon Forecast supports the target field of the
* <code>TARGET_TIME_SERIES</code> and the <code>RELATED_TIME_SERIES</code>
* datasets. For example, for the <code>RETAIL</code> domain, the target is
* <code>demand</code>, and for the <code>CUSTOM</code> domain, the target is
* <code>target_value</code>. For more information, see
* <a>howitworks-missing-values</a>.</p>
*/
inline Featurization& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
/**
* <p>The name of the schema attribute that specifies the data field to be
* featurized. Amazon Forecast supports the target field of the
* <code>TARGET_TIME_SERIES</code> and the <code>RELATED_TIME_SERIES</code>
* datasets. For example, for the <code>RETAIL</code> domain, the target is
* <code>demand</code>, and for the <code>CUSTOM</code> domain, the target is
* <code>target_value</code>. For more information, see
* <a>howitworks-missing-values</a>.</p>
*/
inline Featurization& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
/**
* <p>The name of the schema attribute that specifies the data field to be
* featurized. Amazon Forecast supports the target field of the
* <code>TARGET_TIME_SERIES</code> and the <code>RELATED_TIME_SERIES</code>
* datasets. For example, for the <code>RETAIL</code> domain, the target is
* <code>demand</code>, and for the <code>CUSTOM</code> domain, the target is
* <code>target_value</code>. For more information, see
* <a>howitworks-missing-values</a>.</p>
*/
inline Featurization& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
/**
* <p>An array of one <code>FeaturizationMethod</code> object that specifies the
* feature transformation method.</p>
*/
inline const Aws::Vector<FeaturizationMethod>& GetFeaturizationPipeline() const{ return m_featurizationPipeline; }
/**
* <p>An array of one <code>FeaturizationMethod</code> object that specifies the
* feature transformation method.</p>
*/
inline bool FeaturizationPipelineHasBeenSet() const { return m_featurizationPipelineHasBeenSet; }
/**
* <p>An array of one <code>FeaturizationMethod</code> object that specifies the
* feature transformation method.</p>
*/
inline void SetFeaturizationPipeline(const Aws::Vector<FeaturizationMethod>& value) { m_featurizationPipelineHasBeenSet = true; m_featurizationPipeline = value; }
/**
* <p>An array of one <code>FeaturizationMethod</code> object that specifies the
* feature transformation method.</p>
*/
inline void SetFeaturizationPipeline(Aws::Vector<FeaturizationMethod>&& value) { m_featurizationPipelineHasBeenSet = true; m_featurizationPipeline = std::move(value); }
/**
* <p>An array of one <code>FeaturizationMethod</code> object that specifies the
* feature transformation method.</p>
*/
inline Featurization& WithFeaturizationPipeline(const Aws::Vector<FeaturizationMethod>& value) { SetFeaturizationPipeline(value); return *this;}
/**
* <p>An array of one <code>FeaturizationMethod</code> object that specifies the
* feature transformation method.</p>
*/
inline Featurization& WithFeaturizationPipeline(Aws::Vector<FeaturizationMethod>&& value) { SetFeaturizationPipeline(std::move(value)); return *this;}
/**
* <p>An array of one <code>FeaturizationMethod</code> object that specifies the
* feature transformation method.</p>
*/
inline Featurization& AddFeaturizationPipeline(const FeaturizationMethod& value) { m_featurizationPipelineHasBeenSet = true; m_featurizationPipeline.push_back(value); return *this; }
/**
* <p>An array of one <code>FeaturizationMethod</code> object that specifies the
* feature transformation method.</p>
*/
inline Featurization& AddFeaturizationPipeline(FeaturizationMethod&& value) { m_featurizationPipelineHasBeenSet = true; m_featurizationPipeline.push_back(std::move(value)); return *this; }
private:
Aws::String m_attributeName;
bool m_attributeNameHasBeenSet;
Aws::Vector<FeaturizationMethod> m_featurizationPipeline;
bool m_featurizationPipelineHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,323 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Featurization.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>In a <a>CreatePredictor</a> operation, the specified algorithm trains a model
* using the specified dataset group. You can optionally tell the operation to
* modify data fields prior to training a model. These modifications are referred
* to as <i>featurization</i>.</p> <p>You define featurization using the
* <code>FeaturizationConfig</code> object. You specify an array of
* transformations, one for each field that you want to featurize. You then include
* the <code>FeaturizationConfig</code> object in your <code>CreatePredictor</code>
* request. Amazon Forecast applies the featurization to the
* <code>TARGET_TIME_SERIES</code> and <code>RELATED_TIME_SERIES</code> datasets
* before model training.</p> <p>You can create multiple featurization
* configurations. For example, you might call the <code>CreatePredictor</code>
* operation twice by specifying different featurization
* configurations.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/FeaturizationConfig">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API FeaturizationConfig
{
public:
FeaturizationConfig();
FeaturizationConfig(Aws::Utils::Json::JsonView jsonValue);
FeaturizationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The frequency of predictions in a forecast.</p> <p>Valid intervals are Y
* (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15
* minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For
* example, "Y" indicates every year and "5min" indicates every five minutes.</p>
* <p>The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset
* frequency.</p> <p>When a RELATED_TIME_SERIES dataset is provided, the frequency
* must be equal to the RELATED_TIME_SERIES dataset frequency.</p>
*/
inline const Aws::String& GetForecastFrequency() const{ return m_forecastFrequency; }
/**
* <p>The frequency of predictions in a forecast.</p> <p>Valid intervals are Y
* (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15
* minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For
* example, "Y" indicates every year and "5min" indicates every five minutes.</p>
* <p>The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset
* frequency.</p> <p>When a RELATED_TIME_SERIES dataset is provided, the frequency
* must be equal to the RELATED_TIME_SERIES dataset frequency.</p>
*/
inline bool ForecastFrequencyHasBeenSet() const { return m_forecastFrequencyHasBeenSet; }
/**
* <p>The frequency of predictions in a forecast.</p> <p>Valid intervals are Y
* (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15
* minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For
* example, "Y" indicates every year and "5min" indicates every five minutes.</p>
* <p>The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset
* frequency.</p> <p>When a RELATED_TIME_SERIES dataset is provided, the frequency
* must be equal to the RELATED_TIME_SERIES dataset frequency.</p>
*/
inline void SetForecastFrequency(const Aws::String& value) { m_forecastFrequencyHasBeenSet = true; m_forecastFrequency = value; }
/**
* <p>The frequency of predictions in a forecast.</p> <p>Valid intervals are Y
* (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15
* minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For
* example, "Y" indicates every year and "5min" indicates every five minutes.</p>
* <p>The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset
* frequency.</p> <p>When a RELATED_TIME_SERIES dataset is provided, the frequency
* must be equal to the RELATED_TIME_SERIES dataset frequency.</p>
*/
inline void SetForecastFrequency(Aws::String&& value) { m_forecastFrequencyHasBeenSet = true; m_forecastFrequency = std::move(value); }
/**
* <p>The frequency of predictions in a forecast.</p> <p>Valid intervals are Y
* (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15
* minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For
* example, "Y" indicates every year and "5min" indicates every five minutes.</p>
* <p>The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset
* frequency.</p> <p>When a RELATED_TIME_SERIES dataset is provided, the frequency
* must be equal to the RELATED_TIME_SERIES dataset frequency.</p>
*/
inline void SetForecastFrequency(const char* value) { m_forecastFrequencyHasBeenSet = true; m_forecastFrequency.assign(value); }
/**
* <p>The frequency of predictions in a forecast.</p> <p>Valid intervals are Y
* (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15
* minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For
* example, "Y" indicates every year and "5min" indicates every five minutes.</p>
* <p>The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset
* frequency.</p> <p>When a RELATED_TIME_SERIES dataset is provided, the frequency
* must be equal to the RELATED_TIME_SERIES dataset frequency.</p>
*/
inline FeaturizationConfig& WithForecastFrequency(const Aws::String& value) { SetForecastFrequency(value); return *this;}
/**
* <p>The frequency of predictions in a forecast.</p> <p>Valid intervals are Y
* (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15
* minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For
* example, "Y" indicates every year and "5min" indicates every five minutes.</p>
* <p>The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset
* frequency.</p> <p>When a RELATED_TIME_SERIES dataset is provided, the frequency
* must be equal to the RELATED_TIME_SERIES dataset frequency.</p>
*/
inline FeaturizationConfig& WithForecastFrequency(Aws::String&& value) { SetForecastFrequency(std::move(value)); return *this;}
/**
* <p>The frequency of predictions in a forecast.</p> <p>Valid intervals are Y
* (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15
* minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For
* example, "Y" indicates every year and "5min" indicates every five minutes.</p>
* <p>The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset
* frequency.</p> <p>When a RELATED_TIME_SERIES dataset is provided, the frequency
* must be equal to the RELATED_TIME_SERIES dataset frequency.</p>
*/
inline FeaturizationConfig& WithForecastFrequency(const char* value) { SetForecastFrequency(value); return *this;}
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline const Aws::Vector<Aws::String>& GetForecastDimensions() const{ return m_forecastDimensions; }
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline bool ForecastDimensionsHasBeenSet() const { return m_forecastDimensionsHasBeenSet; }
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline void SetForecastDimensions(const Aws::Vector<Aws::String>& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions = value; }
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline void SetForecastDimensions(Aws::Vector<Aws::String>&& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions = std::move(value); }
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline FeaturizationConfig& WithForecastDimensions(const Aws::Vector<Aws::String>& value) { SetForecastDimensions(value); return *this;}
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline FeaturizationConfig& WithForecastDimensions(Aws::Vector<Aws::String>&& value) { SetForecastDimensions(std::move(value)); return *this;}
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline FeaturizationConfig& AddForecastDimensions(const Aws::String& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions.push_back(value); return *this; }
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline FeaturizationConfig& AddForecastDimensions(Aws::String&& value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions.push_back(std::move(value)); return *this; }
/**
* <p>An array of dimension (field) names that specify how to group the generated
* forecast.</p> <p>For example, suppose that you are generating a forecast for
* item sales across all of your stores, and your dataset contains a
* <code>store_id</code> field. If you want the sales forecast for each item by
* store, you would specify <code>store_id</code> as the dimension.</p> <p>All
* forecast dimensions specified in the <code>TARGET_TIME_SERIES</code> dataset
* don't need to be specified in the <code>CreatePredictor</code> request. All
* forecast dimensions specified in the <code>RELATED_TIME_SERIES</code> dataset
* must be specified in the <code>CreatePredictor</code> request.</p>
*/
inline FeaturizationConfig& AddForecastDimensions(const char* value) { m_forecastDimensionsHasBeenSet = true; m_forecastDimensions.push_back(value); return *this; }
/**
* <p>An array of featurization (transformation) information for the fields of a
* dataset.</p>
*/
inline const Aws::Vector<Featurization>& GetFeaturizations() const{ return m_featurizations; }
/**
* <p>An array of featurization (transformation) information for the fields of a
* dataset.</p>
*/
inline bool FeaturizationsHasBeenSet() const { return m_featurizationsHasBeenSet; }
/**
* <p>An array of featurization (transformation) information for the fields of a
* dataset.</p>
*/
inline void SetFeaturizations(const Aws::Vector<Featurization>& value) { m_featurizationsHasBeenSet = true; m_featurizations = value; }
/**
* <p>An array of featurization (transformation) information for the fields of a
* dataset.</p>
*/
inline void SetFeaturizations(Aws::Vector<Featurization>&& value) { m_featurizationsHasBeenSet = true; m_featurizations = std::move(value); }
/**
* <p>An array of featurization (transformation) information for the fields of a
* dataset.</p>
*/
inline FeaturizationConfig& WithFeaturizations(const Aws::Vector<Featurization>& value) { SetFeaturizations(value); return *this;}
/**
* <p>An array of featurization (transformation) information for the fields of a
* dataset.</p>
*/
inline FeaturizationConfig& WithFeaturizations(Aws::Vector<Featurization>&& value) { SetFeaturizations(std::move(value)); return *this;}
/**
* <p>An array of featurization (transformation) information for the fields of a
* dataset.</p>
*/
inline FeaturizationConfig& AddFeaturizations(const Featurization& value) { m_featurizationsHasBeenSet = true; m_featurizations.push_back(value); return *this; }
/**
* <p>An array of featurization (transformation) information for the fields of a
* dataset.</p>
*/
inline FeaturizationConfig& AddFeaturizations(Featurization&& value) { m_featurizationsHasBeenSet = true; m_featurizations.push_back(std::move(value)); return *this; }
private:
Aws::String m_forecastFrequency;
bool m_forecastFrequencyHasBeenSet;
Aws::Vector<Aws::String> m_forecastDimensions;
bool m_forecastDimensionsHasBeenSet;
Aws::Vector<Featurization> m_featurizations;
bool m_featurizationsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,435 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/model/FeaturizationMethodName.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides information about the method that featurizes (transforms) a dataset
* field. The method is part of the <code>FeaturizationPipeline</code> of the
* <a>Featurization</a> object. </p> <p>The following is an example of how you
* specify a <code>FeaturizationMethod</code> object.</p> <p> <code>{</code> </p>
* <p> <code>"FeaturizationMethodName": "filling",</code> </p> <p>
* <code>"FeaturizationMethodParameters": {"aggregation": "sum", "middlefill":
* "zero", "backfill": "zero"}</code> </p> <p> <code>}</code> </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/FeaturizationMethod">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API FeaturizationMethod
{
public:
FeaturizationMethod();
FeaturizationMethod(Aws::Utils::Json::JsonView jsonValue);
FeaturizationMethod& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the method. The "filling" method is the only supported
* method.</p>
*/
inline const FeaturizationMethodName& GetFeaturizationMethodName() const{ return m_featurizationMethodName; }
/**
* <p>The name of the method. The "filling" method is the only supported
* method.</p>
*/
inline bool FeaturizationMethodNameHasBeenSet() const { return m_featurizationMethodNameHasBeenSet; }
/**
* <p>The name of the method. The "filling" method is the only supported
* method.</p>
*/
inline void SetFeaturizationMethodName(const FeaturizationMethodName& value) { m_featurizationMethodNameHasBeenSet = true; m_featurizationMethodName = value; }
/**
* <p>The name of the method. The "filling" method is the only supported
* method.</p>
*/
inline void SetFeaturizationMethodName(FeaturizationMethodName&& value) { m_featurizationMethodNameHasBeenSet = true; m_featurizationMethodName = std::move(value); }
/**
* <p>The name of the method. The "filling" method is the only supported
* method.</p>
*/
inline FeaturizationMethod& WithFeaturizationMethodName(const FeaturizationMethodName& value) { SetFeaturizationMethodName(value); return *this;}
/**
* <p>The name of the method. The "filling" method is the only supported
* method.</p>
*/
inline FeaturizationMethod& WithFeaturizationMethodName(FeaturizationMethodName&& value) { SetFeaturizationMethodName(std::move(value)); return *this;}
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetFeaturizationMethodParameters() const{ return m_featurizationMethodParameters; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline bool FeaturizationMethodParametersHasBeenSet() const { return m_featurizationMethodParametersHasBeenSet; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline void SetFeaturizationMethodParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters = value; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline void SetFeaturizationMethodParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters = std::move(value); }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& WithFeaturizationMethodParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetFeaturizationMethodParameters(value); return *this;}
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& WithFeaturizationMethodParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetFeaturizationMethodParameters(std::move(value)); return *this;}
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& AddFeaturizationMethodParameters(const Aws::String& key, const Aws::String& value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters.emplace(key, value); return *this; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& AddFeaturizationMethodParameters(Aws::String&& key, const Aws::String& value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& AddFeaturizationMethodParameters(const Aws::String& key, Aws::String&& value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& AddFeaturizationMethodParameters(Aws::String&& key, Aws::String&& value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& AddFeaturizationMethodParameters(const char* key, Aws::String&& value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& AddFeaturizationMethodParameters(Aws::String&& key, const char* value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The method parameters (key-value pairs), which are a map of override
* parameters. Specify these parameters to override the default values. Related
* Time Series attributes do not accept aggregation parameters.</p> <p>The
* following list shows the parameters and their valid values for the "filling"
* featurization method for a <b>Target Time Series</b> dataset. Bold signifies the
* default value.</p> <ul> <li> <p> <code>aggregation</code>: <b>sum</b>,
* <code>avg</code>, <code>first</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>frontfill</code>: <b>none</b> </p> </li> <li> <p>
* <code>middlefill</code>: <b>zero</b>, <code>nan</code> (not a number),
* <code>value</code>, <code>median</code>, <code>mean</code>, <code>min</code>,
* <code>max</code> </p> </li> <li> <p> <code>backfill</code>: <b>zero</b>,
* <code>nan</code>, <code>value</code>, <code>median</code>, <code>mean</code>,
* <code>min</code>, <code>max</code> </p> </li> </ul> <p>The following list shows
* the parameters and their valid values for a <b>Related Time Series</b>
* featurization method (there are no defaults):</p> <ul> <li> <p>
* <code>middlefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>backfill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> <li> <p> <code>futurefill</code>: <code>zero</code>, <code>value</code>,
* <code>median</code>, <code>mean</code>, <code>min</code>, <code>max</code> </p>
* </li> </ul>
*/
inline FeaturizationMethod& AddFeaturizationMethodParameters(const char* key, const char* value) { m_featurizationMethodParametersHasBeenSet = true; m_featurizationMethodParameters.emplace(key, value); return *this; }
private:
FeaturizationMethodName m_featurizationMethodName;
bool m_featurizationMethodNameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_featurizationMethodParameters;
bool m_featurizationMethodParametersHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
enum class FeaturizationMethodName
{
NOT_SET,
filling
};
namespace FeaturizationMethodNameMapper
{
AWS_FORECASTSERVICE_API FeaturizationMethodName GetFeaturizationMethodNameForName(const Aws::String& name);
AWS_FORECASTSERVICE_API Aws::String GetNameForFeaturizationMethodName(FeaturizationMethodName value);
} // namespace FeaturizationMethodNameMapper
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/FilterConditionString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Describes a filter for choosing a subset of objects. Each filter consists of
* a condition and a match statement. The condition is either <code>IS</code> or
* <code>IS_NOT</code>, which specifies whether to include or exclude the objects
* that match the statement, respectively. The match statement consists of a key
* and a value.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/Filter">AWS API
* Reference</a></p>
*/
class AWS_FORECASTSERVICE_API Filter
{
public:
Filter();
Filter(Aws::Utils::Json::JsonView jsonValue);
Filter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the parameter to filter on.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The name of the parameter to filter on.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The name of the parameter to filter on.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The name of the parameter to filter on.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The name of the parameter to filter on.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The name of the parameter to filter on.</p>
*/
inline Filter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The name of the parameter to filter on.</p>
*/
inline Filter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The name of the parameter to filter on.</p>
*/
inline Filter& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>The value to match.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value to match.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value to match.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value to match.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value to match.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value to match.</p>
*/
inline Filter& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value to match.</p>
*/
inline Filter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value to match.</p>
*/
inline Filter& WithValue(const char* value) { SetValue(value); return *this;}
/**
* <p>The condition to apply. To include the objects that match the statement,
* specify <code>IS</code>. To exclude matching objects, specify
* <code>IS_NOT</code>.</p>
*/
inline const FilterConditionString& GetCondition() const{ return m_condition; }
/**
* <p>The condition to apply. To include the objects that match the statement,
* specify <code>IS</code>. To exclude matching objects, specify
* <code>IS_NOT</code>.</p>
*/
inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
/**
* <p>The condition to apply. To include the objects that match the statement,
* specify <code>IS</code>. To exclude matching objects, specify
* <code>IS_NOT</code>.</p>
*/
inline void SetCondition(const FilterConditionString& value) { m_conditionHasBeenSet = true; m_condition = value; }
/**
* <p>The condition to apply. To include the objects that match the statement,
* specify <code>IS</code>. To exclude matching objects, specify
* <code>IS_NOT</code>.</p>
*/
inline void SetCondition(FilterConditionString&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
/**
* <p>The condition to apply. To include the objects that match the statement,
* specify <code>IS</code>. To exclude matching objects, specify
* <code>IS_NOT</code>.</p>
*/
inline Filter& WithCondition(const FilterConditionString& value) { SetCondition(value); return *this;}
/**
* <p>The condition to apply. To include the objects that match the statement,
* specify <code>IS</code>. To exclude matching objects, specify
* <code>IS_NOT</code>.</p>
*/
inline Filter& WithCondition(FilterConditionString&& value) { SetCondition(std::move(value)); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
FilterConditionString m_condition;
bool m_conditionHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
enum class FilterConditionString
{
NOT_SET,
IS,
IS_NOT
};
namespace FilterConditionStringMapper
{
AWS_FORECASTSERVICE_API FilterConditionString GetFilterConditionStringForName(const Aws::String& name);
AWS_FORECASTSERVICE_API Aws::String GetNameForFilterConditionString(FilterConditionString value);
} // namespace FilterConditionStringMapper
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,381 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DataDestination.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides a summary of the forecast export job properties used in the
* <a>ListForecastExportJobs</a> operation. To get the complete set of properties,
* call the <a>DescribeForecastExportJob</a> operation, and provide the listed
* <code>ForecastExportJobArn</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/ForecastExportJobSummary">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API ForecastExportJobSummary
{
public:
ForecastExportJobSummary();
ForecastExportJobSummary(Aws::Utils::Json::JsonView jsonValue);
ForecastExportJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline const Aws::String& GetForecastExportJobArn() const{ return m_forecastExportJobArn; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline bool ForecastExportJobArnHasBeenSet() const { return m_forecastExportJobArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(const Aws::String& value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(Aws::String&& value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline void SetForecastExportJobArn(const char* value) { m_forecastExportJobArnHasBeenSet = true; m_forecastExportJobArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline ForecastExportJobSummary& WithForecastExportJobArn(const Aws::String& value) { SetForecastExportJobArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline ForecastExportJobSummary& WithForecastExportJobArn(Aws::String&& value) { SetForecastExportJobArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the forecast export job.</p>
*/
inline ForecastExportJobSummary& WithForecastExportJobArn(const char* value) { SetForecastExportJobArn(value); return *this;}
/**
* <p>The name of the forecast export job.</p>
*/
inline const Aws::String& GetForecastExportJobName() const{ return m_forecastExportJobName; }
/**
* <p>The name of the forecast export job.</p>
*/
inline bool ForecastExportJobNameHasBeenSet() const { return m_forecastExportJobNameHasBeenSet; }
/**
* <p>The name of the forecast export job.</p>
*/
inline void SetForecastExportJobName(const Aws::String& value) { m_forecastExportJobNameHasBeenSet = true; m_forecastExportJobName = value; }
/**
* <p>The name of the forecast export job.</p>
*/
inline void SetForecastExportJobName(Aws::String&& value) { m_forecastExportJobNameHasBeenSet = true; m_forecastExportJobName = std::move(value); }
/**
* <p>The name of the forecast export job.</p>
*/
inline void SetForecastExportJobName(const char* value) { m_forecastExportJobNameHasBeenSet = true; m_forecastExportJobName.assign(value); }
/**
* <p>The name of the forecast export job.</p>
*/
inline ForecastExportJobSummary& WithForecastExportJobName(const Aws::String& value) { SetForecastExportJobName(value); return *this;}
/**
* <p>The name of the forecast export job.</p>
*/
inline ForecastExportJobSummary& WithForecastExportJobName(Aws::String&& value) { SetForecastExportJobName(std::move(value)); return *this;}
/**
* <p>The name of the forecast export job.</p>
*/
inline ForecastExportJobSummary& WithForecastExportJobName(const char* value) { SetForecastExportJobName(value); return *this;}
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline const DataDestination& GetDestination() const{ return m_destination; }
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline void SetDestination(const DataDestination& value) { m_destinationHasBeenSet = true; m_destination = value; }
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline void SetDestination(DataDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline ForecastExportJobSummary& WithDestination(const DataDestination& value) { SetDestination(value); return *this;}
/**
* <p>The path to the Amazon Simple Storage Service (Amazon S3) bucket where the
* forecast is exported.</p>
*/
inline ForecastExportJobSummary& WithDestination(DataDestination&& value) { SetDestination(std::move(value)); return *this;}
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline ForecastExportJobSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline ForecastExportJobSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the forecast export job. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast export job must be <code>ACTIVE</code> before you can access the
* forecast in your S3 bucket.</p>
*/
inline ForecastExportJobSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline ForecastExportJobSummary& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline ForecastExportJobSummary& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline ForecastExportJobSummary& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>When the forecast export job was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the forecast export job was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>When the forecast export job was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>When the forecast export job was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>When the forecast export job was created.</p>
*/
inline ForecastExportJobSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the forecast export job was created.</p>
*/
inline ForecastExportJobSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>When the last successful export job finished.</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>When the last successful export job finished.</p>
*/
inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
/**
* <p>When the last successful export job finished.</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }
/**
* <p>When the last successful export job finished.</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }
/**
* <p>When the last successful export job finished.</p>
*/
inline ForecastExportJobSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>When the last successful export job finished.</p>
*/
inline ForecastExportJobSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_forecastExportJobArn;
bool m_forecastExportJobArnHasBeenSet;
Aws::String m_forecastExportJobName;
bool m_forecastExportJobNameHasBeenSet;
DataDestination m_destination;
bool m_destinationHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastModificationTime;
bool m_lastModificationTimeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,460 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides a summary of the forecast properties used in the
* <a>ListForecasts</a> operation. To get the complete set of properties, call the
* <a>DescribeForecast</a> operation, and provide the <code>ForecastArn</code> that
* is listed in the summary.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/ForecastSummary">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API ForecastSummary
{
public:
ForecastSummary();
ForecastSummary(Aws::Utils::Json::JsonView jsonValue);
ForecastSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the forecast.</p>
*/
inline const Aws::String& GetForecastArn() const{ return m_forecastArn; }
/**
* <p>The ARN of the forecast.</p>
*/
inline bool ForecastArnHasBeenSet() const { return m_forecastArnHasBeenSet; }
/**
* <p>The ARN of the forecast.</p>
*/
inline void SetForecastArn(const Aws::String& value) { m_forecastArnHasBeenSet = true; m_forecastArn = value; }
/**
* <p>The ARN of the forecast.</p>
*/
inline void SetForecastArn(Aws::String&& value) { m_forecastArnHasBeenSet = true; m_forecastArn = std::move(value); }
/**
* <p>The ARN of the forecast.</p>
*/
inline void SetForecastArn(const char* value) { m_forecastArnHasBeenSet = true; m_forecastArn.assign(value); }
/**
* <p>The ARN of the forecast.</p>
*/
inline ForecastSummary& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;}
/**
* <p>The ARN of the forecast.</p>
*/
inline ForecastSummary& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;}
/**
* <p>The ARN of the forecast.</p>
*/
inline ForecastSummary& WithForecastArn(const char* value) { SetForecastArn(value); return *this;}
/**
* <p>The name of the forecast.</p>
*/
inline const Aws::String& GetForecastName() const{ return m_forecastName; }
/**
* <p>The name of the forecast.</p>
*/
inline bool ForecastNameHasBeenSet() const { return m_forecastNameHasBeenSet; }
/**
* <p>The name of the forecast.</p>
*/
inline void SetForecastName(const Aws::String& value) { m_forecastNameHasBeenSet = true; m_forecastName = value; }
/**
* <p>The name of the forecast.</p>
*/
inline void SetForecastName(Aws::String&& value) { m_forecastNameHasBeenSet = true; m_forecastName = std::move(value); }
/**
* <p>The name of the forecast.</p>
*/
inline void SetForecastName(const char* value) { m_forecastNameHasBeenSet = true; m_forecastName.assign(value); }
/**
* <p>The name of the forecast.</p>
*/
inline ForecastSummary& WithForecastName(const Aws::String& value) { SetForecastName(value); return *this;}
/**
* <p>The name of the forecast.</p>
*/
inline ForecastSummary& WithForecastName(Aws::String&& value) { SetForecastName(std::move(value)); return *this;}
/**
* <p>The name of the forecast.</p>
*/
inline ForecastSummary& WithForecastName(const char* value) { SetForecastName(value); return *this;}
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); }
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline ForecastSummary& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline ForecastSummary& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The ARN of the predictor used to generate the forecast.</p>
*/
inline ForecastSummary& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that provided the data
* used to train the predictor.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that provided the data
* used to train the predictor.</p>
*/
inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that provided the data
* used to train the predictor.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that provided the data
* used to train the predictor.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that provided the data
* used to train the predictor.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that provided the data
* used to train the predictor.</p>
*/
inline ForecastSummary& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that provided the data
* used to train the predictor.</p>
*/
inline ForecastSummary& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that provided the data
* used to train the predictor.</p>
*/
inline ForecastSummary& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline ForecastSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline ForecastSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the forecast. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> </ul> <p>The <code>Status</code> of
* the forecast must be <code>ACTIVE</code> before you can query or export the
* forecast.</p>
*/
inline ForecastSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline ForecastSummary& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline ForecastSummary& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline ForecastSummary& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>When the forecast creation task was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the forecast creation task was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>When the forecast creation task was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>When the forecast creation task was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>When the forecast creation task was created.</p>
*/
inline ForecastSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the forecast creation task was created.</p>
*/
inline ForecastSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline ForecastSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when inference (creating the forecast)
* starts (status changed to <code>CREATE_IN_PROGRESS</code>), and when inference
* is complete (status changed to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline ForecastSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_forecastArn;
bool m_forecastArnHasBeenSet;
Aws::String m_forecastName;
bool m_forecastNameHasBeenSet;
Aws::String m_predictorArn;
bool m_predictorArnHasBeenSet;
Aws::String m_datasetGroupArn;
bool m_datasetGroupArnHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastModificationTime;
bool m_lastModificationTimeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API GetAccuracyMetricsRequest : public ForecastServiceRequest
{
public:
GetAccuracyMetricsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetAccuracyMetrics"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the predictor to get metrics for.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to get metrics for.</p>
*/
inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to get metrics for.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to get metrics for.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to get metrics for.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the predictor to get metrics for.</p>
*/
inline GetAccuracyMetricsRequest& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor to get metrics for.</p>
*/
inline GetAccuracyMetricsRequest& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the predictor to get metrics for.</p>
*/
inline GetAccuracyMetricsRequest& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
private:
Aws::String m_predictorArn;
bool m_predictorArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/EvaluationResult.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API GetAccuracyMetricsResult
{
public:
GetAccuracyMetricsResult();
GetAccuracyMetricsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAccuracyMetricsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of results from evaluating the predictor.</p>
*/
inline const Aws::Vector<EvaluationResult>& GetPredictorEvaluationResults() const{ return m_predictorEvaluationResults; }
/**
* <p>An array of results from evaluating the predictor.</p>
*/
inline void SetPredictorEvaluationResults(const Aws::Vector<EvaluationResult>& value) { m_predictorEvaluationResults = value; }
/**
* <p>An array of results from evaluating the predictor.</p>
*/
inline void SetPredictorEvaluationResults(Aws::Vector<EvaluationResult>&& value) { m_predictorEvaluationResults = std::move(value); }
/**
* <p>An array of results from evaluating the predictor.</p>
*/
inline GetAccuracyMetricsResult& WithPredictorEvaluationResults(const Aws::Vector<EvaluationResult>& value) { SetPredictorEvaluationResults(value); return *this;}
/**
* <p>An array of results from evaluating the predictor.</p>
*/
inline GetAccuracyMetricsResult& WithPredictorEvaluationResults(Aws::Vector<EvaluationResult>&& value) { SetPredictorEvaluationResults(std::move(value)); return *this;}
/**
* <p>An array of results from evaluating the predictor.</p>
*/
inline GetAccuracyMetricsResult& AddPredictorEvaluationResults(const EvaluationResult& value) { m_predictorEvaluationResults.push_back(value); return *this; }
/**
* <p>An array of results from evaluating the predictor.</p>
*/
inline GetAccuracyMetricsResult& AddPredictorEvaluationResults(EvaluationResult&& value) { m_predictorEvaluationResults.push_back(std::move(value)); return *this; }
private:
Aws::Vector<EvaluationResult> m_predictorEvaluationResults;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,87 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/model/ParameterRanges.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Configuration information for a hyperparameter tuning job. You specify this
* object in the <a>CreatePredictor</a> request.</p> <p>A <i>hyperparameter</i> is
* a parameter that governs the model training process. You set hyperparameters
* before training starts, unlike model parameters, which are determined during
* training. The values of the hyperparameters effect which values are chosen for
* the model parameters.</p> <p>In a <i>hyperparameter tuning job</i>, Amazon
* Forecast chooses the set of hyperparameter values that optimize a specified
* metric. Forecast accomplishes this by running many training jobs over a range of
* hyperparameter values. The optimum set of values depends on the algorithm, the
* training data, and the specified metric objective.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/HyperParameterTuningJobConfig">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API HyperParameterTuningJobConfig
{
public:
HyperParameterTuningJobConfig();
HyperParameterTuningJobConfig(Aws::Utils::Json::JsonView jsonValue);
HyperParameterTuningJobConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the ranges of valid values for the hyperparameters.</p>
*/
inline const ParameterRanges& GetParameterRanges() const{ return m_parameterRanges; }
/**
* <p>Specifies the ranges of valid values for the hyperparameters.</p>
*/
inline bool ParameterRangesHasBeenSet() const { return m_parameterRangesHasBeenSet; }
/**
* <p>Specifies the ranges of valid values for the hyperparameters.</p>
*/
inline void SetParameterRanges(const ParameterRanges& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = value; }
/**
* <p>Specifies the ranges of valid values for the hyperparameters.</p>
*/
inline void SetParameterRanges(ParameterRanges&& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = std::move(value); }
/**
* <p>Specifies the ranges of valid values for the hyperparameters.</p>
*/
inline HyperParameterTuningJobConfig& WithParameterRanges(const ParameterRanges& value) { SetParameterRanges(value); return *this;}
/**
* <p>Specifies the ranges of valid values for the hyperparameters.</p>
*/
inline HyperParameterTuningJobConfig& WithParameterRanges(ParameterRanges&& value) { SetParameterRanges(std::move(value)); return *this;}
private:
ParameterRanges m_parameterRanges;
bool m_parameterRangesHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,144 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/SupplementaryFeature.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The data used to train a predictor. The data includes a dataset group and any
* supplementary features. You specify this object in the <a>CreatePredictor</a>
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/InputDataConfig">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API InputDataConfig
{
public:
InputDataConfig();
InputDataConfig(Aws::Utils::Json::JsonView jsonValue);
InputDataConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline InputDataConfig& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline InputDataConfig& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group.</p>
*/
inline InputDataConfig& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>An array of supplementary features. The only supported feature is a holiday
* calendar.</p>
*/
inline const Aws::Vector<SupplementaryFeature>& GetSupplementaryFeatures() const{ return m_supplementaryFeatures; }
/**
* <p>An array of supplementary features. The only supported feature is a holiday
* calendar.</p>
*/
inline bool SupplementaryFeaturesHasBeenSet() const { return m_supplementaryFeaturesHasBeenSet; }
/**
* <p>An array of supplementary features. The only supported feature is a holiday
* calendar.</p>
*/
inline void SetSupplementaryFeatures(const Aws::Vector<SupplementaryFeature>& value) { m_supplementaryFeaturesHasBeenSet = true; m_supplementaryFeatures = value; }
/**
* <p>An array of supplementary features. The only supported feature is a holiday
* calendar.</p>
*/
inline void SetSupplementaryFeatures(Aws::Vector<SupplementaryFeature>&& value) { m_supplementaryFeaturesHasBeenSet = true; m_supplementaryFeatures = std::move(value); }
/**
* <p>An array of supplementary features. The only supported feature is a holiday
* calendar.</p>
*/
inline InputDataConfig& WithSupplementaryFeatures(const Aws::Vector<SupplementaryFeature>& value) { SetSupplementaryFeatures(value); return *this;}
/**
* <p>An array of supplementary features. The only supported feature is a holiday
* calendar.</p>
*/
inline InputDataConfig& WithSupplementaryFeatures(Aws::Vector<SupplementaryFeature>&& value) { SetSupplementaryFeatures(std::move(value)); return *this;}
/**
* <p>An array of supplementary features. The only supported feature is a holiday
* calendar.</p>
*/
inline InputDataConfig& AddSupplementaryFeatures(const SupplementaryFeature& value) { m_supplementaryFeaturesHasBeenSet = true; m_supplementaryFeatures.push_back(value); return *this; }
/**
* <p>An array of supplementary features. The only supported feature is a holiday
* calendar.</p>
*/
inline InputDataConfig& AddSupplementaryFeatures(SupplementaryFeature&& value) { m_supplementaryFeaturesHasBeenSet = true; m_supplementaryFeatures.push_back(std::move(value)); return *this; }
private:
Aws::String m_datasetGroupArn;
bool m_datasetGroupArnHasBeenSet;
Aws::Vector<SupplementaryFeature> m_supplementaryFeatures;
bool m_supplementaryFeaturesHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,245 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/ScalingType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Specifies an integer hyperparameter and it's range of tunable values. This
* object is part of the <a>ParameterRanges</a> object.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/IntegerParameterRange">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API IntegerParameterRange
{
public:
IntegerParameterRange();
IntegerParameterRange(Aws::Utils::Json::JsonView jsonValue);
IntegerParameterRange& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline IntegerParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline IntegerParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the hyperparameter to tune.</p>
*/
inline IntegerParameterRange& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The maximum tunable value of the hyperparameter.</p>
*/
inline int GetMaxValue() const{ return m_maxValue; }
/**
* <p>The maximum tunable value of the hyperparameter.</p>
*/
inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
/**
* <p>The maximum tunable value of the hyperparameter.</p>
*/
inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
/**
* <p>The maximum tunable value of the hyperparameter.</p>
*/
inline IntegerParameterRange& WithMaxValue(int value) { SetMaxValue(value); return *this;}
/**
* <p>The minimum tunable value of the hyperparameter.</p>
*/
inline int GetMinValue() const{ return m_minValue; }
/**
* <p>The minimum tunable value of the hyperparameter.</p>
*/
inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
/**
* <p>The minimum tunable value of the hyperparameter.</p>
*/
inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
/**
* <p>The minimum tunable value of the hyperparameter.</p>
*/
inline IntegerParameterRange& WithMinValue(int value) { SetMinValue(value); return *this;}
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>Not supported for
* <code>IntegerParameterRange</code>.</p> <p>Reverse logarithmic scaling works
* only for ranges that are entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd>
* </dl> <p>For information about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline const ScalingType& GetScalingType() const{ return m_scalingType; }
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>Not supported for
* <code>IntegerParameterRange</code>.</p> <p>Reverse logarithmic scaling works
* only for ranges that are entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd>
* </dl> <p>For information about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline bool ScalingTypeHasBeenSet() const { return m_scalingTypeHasBeenSet; }
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>Not supported for
* <code>IntegerParameterRange</code>.</p> <p>Reverse logarithmic scaling works
* only for ranges that are entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd>
* </dl> <p>For information about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline void SetScalingType(const ScalingType& value) { m_scalingTypeHasBeenSet = true; m_scalingType = value; }
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>Not supported for
* <code>IntegerParameterRange</code>.</p> <p>Reverse logarithmic scaling works
* only for ranges that are entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd>
* </dl> <p>For information about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline void SetScalingType(ScalingType&& value) { m_scalingTypeHasBeenSet = true; m_scalingType = std::move(value); }
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>Not supported for
* <code>IntegerParameterRange</code>.</p> <p>Reverse logarithmic scaling works
* only for ranges that are entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd>
* </dl> <p>For information about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline IntegerParameterRange& WithScalingType(const ScalingType& value) { SetScalingType(value); return *this;}
/**
* <p>The scale that hyperparameter tuning uses to search the hyperparameter range.
* Valid values:</p> <dl> <dt>Auto</dt> <dd> <p>Amazon Forecast hyperparameter
* tuning chooses the best scale for the hyperparameter.</p> </dd> <dt>Linear</dt>
* <dd> <p>Hyperparameter tuning searches the values in the hyperparameter range by
* using a linear scale.</p> </dd> <dt>Logarithmic</dt> <dd> <p>Hyperparameter
* tuning searches the values in the hyperparameter range by using a logarithmic
* scale.</p> <p>Logarithmic scaling works only for ranges that have values greater
* than 0.</p> </dd> <dt>ReverseLogarithmic</dt> <dd> <p>Not supported for
* <code>IntegerParameterRange</code>.</p> <p>Reverse logarithmic scaling works
* only for ranges that are entirely within the range 0 &lt;= x &lt; 1.0.</p> </dd>
* </dl> <p>For information about choosing a hyperparameter scale, see <a
* href="http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type">Hyperparameter
* Scaling</a>. One of the following values:</p>
*/
inline IntegerParameterRange& WithScalingType(ScalingType&& value) { SetScalingType(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
int m_maxValue;
bool m_maxValueHasBeenSet;
int m_minValue;
bool m_minValueHasBeenSet;
ScalingType m_scalingType;
bool m_scalingTypeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,125 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API ListDatasetGroupsRequest : public ForecastServiceRequest
{
public:
ListDatasetGroupsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListDatasetGroups"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The number of items to return in the response.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The number of items to return in the response.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The number of items to return in the response.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The number of items to return in the response.</p>
*/
inline ListDatasetGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DatasetGroupSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API ListDatasetGroupsResult
{
public:
ListDatasetGroupsResult();
ListDatasetGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDatasetGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of objects that summarize each dataset group's properties.</p>
*/
inline const Aws::Vector<DatasetGroupSummary>& GetDatasetGroups() const{ return m_datasetGroups; }
/**
* <p>An array of objects that summarize each dataset group's properties.</p>
*/
inline void SetDatasetGroups(const Aws::Vector<DatasetGroupSummary>& value) { m_datasetGroups = value; }
/**
* <p>An array of objects that summarize each dataset group's properties.</p>
*/
inline void SetDatasetGroups(Aws::Vector<DatasetGroupSummary>&& value) { m_datasetGroups = std::move(value); }
/**
* <p>An array of objects that summarize each dataset group's properties.</p>
*/
inline ListDatasetGroupsResult& WithDatasetGroups(const Aws::Vector<DatasetGroupSummary>& value) { SetDatasetGroups(value); return *this;}
/**
* <p>An array of objects that summarize each dataset group's properties.</p>
*/
inline ListDatasetGroupsResult& WithDatasetGroups(Aws::Vector<DatasetGroupSummary>&& value) { SetDatasetGroups(std::move(value)); return *this;}
/**
* <p>An array of objects that summarize each dataset group's properties.</p>
*/
inline ListDatasetGroupsResult& AddDatasetGroups(const DatasetGroupSummary& value) { m_datasetGroups.push_back(value); return *this; }
/**
* <p>An array of objects that summarize each dataset group's properties.</p>
*/
inline ListDatasetGroupsResult& AddDatasetGroups(DatasetGroupSummary&& value) { m_datasetGroups.push_back(std::move(value)); return *this; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetGroupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DatasetGroupSummary> m_datasetGroups;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,275 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Filter.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API ListDatasetImportJobsRequest : public ForecastServiceRequest
{
public:
ListDatasetImportJobsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListDatasetImportJobs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetImportJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetImportJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetImportJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The number of items to return in the response.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The number of items to return in the response.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The number of items to return in the response.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The number of items to return in the response.</p>
*/
inline ListDatasetImportJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the datasets that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the datasets that match the
* statement, specify <code>IS</code>. To exclude matching datasets, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all dataset import jobs whose
* status is ACTIVE, you specify the following filter:</p> <p> <code>"Filters": [ {
* "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the datasets that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the datasets that match the
* statement, specify <code>IS</code>. To exclude matching datasets, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all dataset import jobs whose
* status is ACTIVE, you specify the following filter:</p> <p> <code>"Filters": [ {
* "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the datasets that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the datasets that match the
* statement, specify <code>IS</code>. To exclude matching datasets, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all dataset import jobs whose
* status is ACTIVE, you specify the following filter:</p> <p> <code>"Filters": [ {
* "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the datasets that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the datasets that match the
* statement, specify <code>IS</code>. To exclude matching datasets, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all dataset import jobs whose
* status is ACTIVE, you specify the following filter:</p> <p> <code>"Filters": [ {
* "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the datasets that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the datasets that match the
* statement, specify <code>IS</code>. To exclude matching datasets, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all dataset import jobs whose
* status is ACTIVE, you specify the following filter:</p> <p> <code>"Filters": [ {
* "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline ListDatasetImportJobsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the datasets that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the datasets that match the
* statement, specify <code>IS</code>. To exclude matching datasets, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all dataset import jobs whose
* status is ACTIVE, you specify the following filter:</p> <p> <code>"Filters": [ {
* "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline ListDatasetImportJobsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the datasets that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the datasets that match the
* statement, specify <code>IS</code>. To exclude matching datasets, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all dataset import jobs whose
* status is ACTIVE, you specify the following filter:</p> <p> <code>"Filters": [ {
* "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline ListDatasetImportJobsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the datasets that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the datasets that match the
* statement, specify <code>IS</code>. To exclude matching datasets, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all dataset import jobs whose
* status is ACTIVE, you specify the following filter:</p> <p> <code>"Filters": [ {
* "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline ListDatasetImportJobsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::Vector<Filter> m_filters;
bool m_filtersHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DatasetImportJobSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API ListDatasetImportJobsResult
{
public:
ListDatasetImportJobsResult();
ListDatasetImportJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDatasetImportJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of objects that summarize each dataset import job's properties.</p>
*/
inline const Aws::Vector<DatasetImportJobSummary>& GetDatasetImportJobs() const{ return m_datasetImportJobs; }
/**
* <p>An array of objects that summarize each dataset import job's properties.</p>
*/
inline void SetDatasetImportJobs(const Aws::Vector<DatasetImportJobSummary>& value) { m_datasetImportJobs = value; }
/**
* <p>An array of objects that summarize each dataset import job's properties.</p>
*/
inline void SetDatasetImportJobs(Aws::Vector<DatasetImportJobSummary>&& value) { m_datasetImportJobs = std::move(value); }
/**
* <p>An array of objects that summarize each dataset import job's properties.</p>
*/
inline ListDatasetImportJobsResult& WithDatasetImportJobs(const Aws::Vector<DatasetImportJobSummary>& value) { SetDatasetImportJobs(value); return *this;}
/**
* <p>An array of objects that summarize each dataset import job's properties.</p>
*/
inline ListDatasetImportJobsResult& WithDatasetImportJobs(Aws::Vector<DatasetImportJobSummary>&& value) { SetDatasetImportJobs(std::move(value)); return *this;}
/**
* <p>An array of objects that summarize each dataset import job's properties.</p>
*/
inline ListDatasetImportJobsResult& AddDatasetImportJobs(const DatasetImportJobSummary& value) { m_datasetImportJobs.push_back(value); return *this; }
/**
* <p>An array of objects that summarize each dataset import job's properties.</p>
*/
inline ListDatasetImportJobsResult& AddDatasetImportJobs(DatasetImportJobSummary&& value) { m_datasetImportJobs.push_back(std::move(value)); return *this; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetImportJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetImportJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetImportJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DatasetImportJobSummary> m_datasetImportJobs;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,125 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API ListDatasetsRequest : public ForecastServiceRequest
{
public:
ListDatasetsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListDatasets"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListDatasetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The number of items to return in the response.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The number of items to return in the response.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The number of items to return in the response.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The number of items to return in the response.</p>
*/
inline ListDatasetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/DatasetSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API ListDatasetsResult
{
public:
ListDatasetsResult();
ListDatasetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDatasetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of objects that summarize each dataset's properties.</p>
*/
inline const Aws::Vector<DatasetSummary>& GetDatasets() const{ return m_datasets; }
/**
* <p>An array of objects that summarize each dataset's properties.</p>
*/
inline void SetDatasets(const Aws::Vector<DatasetSummary>& value) { m_datasets = value; }
/**
* <p>An array of objects that summarize each dataset's properties.</p>
*/
inline void SetDatasets(Aws::Vector<DatasetSummary>&& value) { m_datasets = std::move(value); }
/**
* <p>An array of objects that summarize each dataset's properties.</p>
*/
inline ListDatasetsResult& WithDatasets(const Aws::Vector<DatasetSummary>& value) { SetDatasets(value); return *this;}
/**
* <p>An array of objects that summarize each dataset's properties.</p>
*/
inline ListDatasetsResult& WithDatasets(Aws::Vector<DatasetSummary>&& value) { SetDatasets(std::move(value)); return *this;}
/**
* <p>An array of objects that summarize each dataset's properties.</p>
*/
inline ListDatasetsResult& AddDatasets(const DatasetSummary& value) { m_datasets.push_back(value); return *this; }
/**
* <p>An array of objects that summarize each dataset's properties.</p>
*/
inline ListDatasetsResult& AddDatasets(DatasetSummary&& value) { m_datasets.push_back(std::move(value)); return *this; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListDatasetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DatasetSummary> m_datasets;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,299 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Filter.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API ListForecastExportJobsRequest : public ForecastServiceRequest
{
public:
ListForecastExportJobsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListForecastExportJobs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListForecastExportJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListForecastExportJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListForecastExportJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The number of items to return in the response.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The number of items to return in the response.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The number of items to return in the response.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The number of items to return in the response.</p>
*/
inline ListForecastExportJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecast export jobs that match the
* statement from the list, respectively. The match statement consists of a key and
* a value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecast export jobs
* that match the statement, specify <code>IS</code>. To exclude matching forecast
* export jobs, specify <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> -
* The name of the parameter to filter on. Valid values are
* <code>ForecastArn</code> and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all jobs that export a forecast named <i>electricityforecast</i>, specify the
* following filter:</p> <p> <code>"Filters": [ { "Condition": "IS", "Key":
* "ForecastArn", "Value":
* "arn:aws:forecast:us-west-2:&lt;acct-id&gt;:forecast/electricityforecast" }
* ]</code> </p>
*/
inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecast export jobs that match the
* statement from the list, respectively. The match statement consists of a key and
* a value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecast export jobs
* that match the statement, specify <code>IS</code>. To exclude matching forecast
* export jobs, specify <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> -
* The name of the parameter to filter on. Valid values are
* <code>ForecastArn</code> and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all jobs that export a forecast named <i>electricityforecast</i>, specify the
* following filter:</p> <p> <code>"Filters": [ { "Condition": "IS", "Key":
* "ForecastArn", "Value":
* "arn:aws:forecast:us-west-2:&lt;acct-id&gt;:forecast/electricityforecast" }
* ]</code> </p>
*/
inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecast export jobs that match the
* statement from the list, respectively. The match statement consists of a key and
* a value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecast export jobs
* that match the statement, specify <code>IS</code>. To exclude matching forecast
* export jobs, specify <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> -
* The name of the parameter to filter on. Valid values are
* <code>ForecastArn</code> and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all jobs that export a forecast named <i>electricityforecast</i>, specify the
* following filter:</p> <p> <code>"Filters": [ { "Condition": "IS", "Key":
* "ForecastArn", "Value":
* "arn:aws:forecast:us-west-2:&lt;acct-id&gt;:forecast/electricityforecast" }
* ]</code> </p>
*/
inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecast export jobs that match the
* statement from the list, respectively. The match statement consists of a key and
* a value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecast export jobs
* that match the statement, specify <code>IS</code>. To exclude matching forecast
* export jobs, specify <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> -
* The name of the parameter to filter on. Valid values are
* <code>ForecastArn</code> and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all jobs that export a forecast named <i>electricityforecast</i>, specify the
* following filter:</p> <p> <code>"Filters": [ { "Condition": "IS", "Key":
* "ForecastArn", "Value":
* "arn:aws:forecast:us-west-2:&lt;acct-id&gt;:forecast/electricityforecast" }
* ]</code> </p>
*/
inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecast export jobs that match the
* statement from the list, respectively. The match statement consists of a key and
* a value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecast export jobs
* that match the statement, specify <code>IS</code>. To exclude matching forecast
* export jobs, specify <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> -
* The name of the parameter to filter on. Valid values are
* <code>ForecastArn</code> and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all jobs that export a forecast named <i>electricityforecast</i>, specify the
* following filter:</p> <p> <code>"Filters": [ { "Condition": "IS", "Key":
* "ForecastArn", "Value":
* "arn:aws:forecast:us-west-2:&lt;acct-id&gt;:forecast/electricityforecast" }
* ]</code> </p>
*/
inline ListForecastExportJobsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecast export jobs that match the
* statement from the list, respectively. The match statement consists of a key and
* a value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecast export jobs
* that match the statement, specify <code>IS</code>. To exclude matching forecast
* export jobs, specify <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> -
* The name of the parameter to filter on. Valid values are
* <code>ForecastArn</code> and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all jobs that export a forecast named <i>electricityforecast</i>, specify the
* following filter:</p> <p> <code>"Filters": [ { "Condition": "IS", "Key":
* "ForecastArn", "Value":
* "arn:aws:forecast:us-west-2:&lt;acct-id&gt;:forecast/electricityforecast" }
* ]</code> </p>
*/
inline ListForecastExportJobsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecast export jobs that match the
* statement from the list, respectively. The match statement consists of a key and
* a value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecast export jobs
* that match the statement, specify <code>IS</code>. To exclude matching forecast
* export jobs, specify <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> -
* The name of the parameter to filter on. Valid values are
* <code>ForecastArn</code> and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all jobs that export a forecast named <i>electricityforecast</i>, specify the
* following filter:</p> <p> <code>"Filters": [ { "Condition": "IS", "Key":
* "ForecastArn", "Value":
* "arn:aws:forecast:us-west-2:&lt;acct-id&gt;:forecast/electricityforecast" }
* ]</code> </p>
*/
inline ListForecastExportJobsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecast export jobs that match the
* statement from the list, respectively. The match statement consists of a key and
* a value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecast export jobs
* that match the statement, specify <code>IS</code>. To exclude matching forecast
* export jobs, specify <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> -
* The name of the parameter to filter on. Valid values are
* <code>ForecastArn</code> and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all jobs that export a forecast named <i>electricityforecast</i>, specify the
* following filter:</p> <p> <code>"Filters": [ { "Condition": "IS", "Key":
* "ForecastArn", "Value":
* "arn:aws:forecast:us-west-2:&lt;acct-id&gt;:forecast/electricityforecast" }
* ]</code> </p>
*/
inline ListForecastExportJobsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::Vector<Filter> m_filters;
bool m_filtersHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/ForecastExportJobSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API ListForecastExportJobsResult
{
public:
ListForecastExportJobsResult();
ListForecastExportJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListForecastExportJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of objects that summarize each export job's properties.</p>
*/
inline const Aws::Vector<ForecastExportJobSummary>& GetForecastExportJobs() const{ return m_forecastExportJobs; }
/**
* <p>An array of objects that summarize each export job's properties.</p>
*/
inline void SetForecastExportJobs(const Aws::Vector<ForecastExportJobSummary>& value) { m_forecastExportJobs = value; }
/**
* <p>An array of objects that summarize each export job's properties.</p>
*/
inline void SetForecastExportJobs(Aws::Vector<ForecastExportJobSummary>&& value) { m_forecastExportJobs = std::move(value); }
/**
* <p>An array of objects that summarize each export job's properties.</p>
*/
inline ListForecastExportJobsResult& WithForecastExportJobs(const Aws::Vector<ForecastExportJobSummary>& value) { SetForecastExportJobs(value); return *this;}
/**
* <p>An array of objects that summarize each export job's properties.</p>
*/
inline ListForecastExportJobsResult& WithForecastExportJobs(Aws::Vector<ForecastExportJobSummary>&& value) { SetForecastExportJobs(std::move(value)); return *this;}
/**
* <p>An array of objects that summarize each export job's properties.</p>
*/
inline ListForecastExportJobsResult& AddForecastExportJobs(const ForecastExportJobSummary& value) { m_forecastExportJobs.push_back(value); return *this; }
/**
* <p>An array of objects that summarize each export job's properties.</p>
*/
inline ListForecastExportJobsResult& AddForecastExportJobs(ForecastExportJobSummary&& value) { m_forecastExportJobs.push_back(std::move(value)); return *this; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListForecastExportJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListForecastExportJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListForecastExportJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ForecastExportJobSummary> m_forecastExportJobs;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,283 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Filter.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API ListForecastsRequest : public ForecastServiceRequest
{
public:
ListForecastsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListForecasts"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListForecastsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListForecastsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListForecastsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The number of items to return in the response.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The number of items to return in the response.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The number of items to return in the response.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The number of items to return in the response.</p>
*/
inline ListForecastsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecasts that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecasts that match the
* statement, specify <code>IS</code>. To exclude matching forecasts, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code>,
* <code>PredictorArn</code>, and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all forecasts whose status is not ACTIVE, you would specify:</p> <p>
* <code>"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" }
* ]</code> </p>
*/
inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecasts that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecasts that match the
* statement, specify <code>IS</code>. To exclude matching forecasts, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code>,
* <code>PredictorArn</code>, and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all forecasts whose status is not ACTIVE, you would specify:</p> <p>
* <code>"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" }
* ]</code> </p>
*/
inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecasts that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecasts that match the
* statement, specify <code>IS</code>. To exclude matching forecasts, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code>,
* <code>PredictorArn</code>, and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all forecasts whose status is not ACTIVE, you would specify:</p> <p>
* <code>"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" }
* ]</code> </p>
*/
inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecasts that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecasts that match the
* statement, specify <code>IS</code>. To exclude matching forecasts, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code>,
* <code>PredictorArn</code>, and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all forecasts whose status is not ACTIVE, you would specify:</p> <p>
* <code>"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" }
* ]</code> </p>
*/
inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecasts that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecasts that match the
* statement, specify <code>IS</code>. To exclude matching forecasts, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code>,
* <code>PredictorArn</code>, and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all forecasts whose status is not ACTIVE, you would specify:</p> <p>
* <code>"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" }
* ]</code> </p>
*/
inline ListForecastsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecasts that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecasts that match the
* statement, specify <code>IS</code>. To exclude matching forecasts, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code>,
* <code>PredictorArn</code>, and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all forecasts whose status is not ACTIVE, you would specify:</p> <p>
* <code>"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" }
* ]</code> </p>
*/
inline ListForecastsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecasts that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecasts that match the
* statement, specify <code>IS</code>. To exclude matching forecasts, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code>,
* <code>PredictorArn</code>, and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all forecasts whose status is not ACTIVE, you would specify:</p> <p>
* <code>"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" }
* ]</code> </p>
*/
inline ListForecastsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the forecasts that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the forecasts that match the
* statement, specify <code>IS</code>. To exclude matching forecasts, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code>,
* <code>PredictorArn</code>, and <code>Status</code>.</p> </li> <li> <p>
* <code>Value</code> - The value to match.</p> </li> </ul> <p>For example, to list
* all forecasts whose status is not ACTIVE, you would specify:</p> <p>
* <code>"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" }
* ]</code> </p>
*/
inline ListForecastsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::Vector<Filter> m_filters;
bool m_filtersHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/ForecastSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API ListForecastsResult
{
public:
ListForecastsResult();
ListForecastsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListForecastsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of objects that summarize each forecast's properties.</p>
*/
inline const Aws::Vector<ForecastSummary>& GetForecasts() const{ return m_forecasts; }
/**
* <p>An array of objects that summarize each forecast's properties.</p>
*/
inline void SetForecasts(const Aws::Vector<ForecastSummary>& value) { m_forecasts = value; }
/**
* <p>An array of objects that summarize each forecast's properties.</p>
*/
inline void SetForecasts(Aws::Vector<ForecastSummary>&& value) { m_forecasts = std::move(value); }
/**
* <p>An array of objects that summarize each forecast's properties.</p>
*/
inline ListForecastsResult& WithForecasts(const Aws::Vector<ForecastSummary>& value) { SetForecasts(value); return *this;}
/**
* <p>An array of objects that summarize each forecast's properties.</p>
*/
inline ListForecastsResult& WithForecasts(Aws::Vector<ForecastSummary>&& value) { SetForecasts(std::move(value)); return *this;}
/**
* <p>An array of objects that summarize each forecast's properties.</p>
*/
inline ListForecastsResult& AddForecasts(const ForecastSummary& value) { m_forecasts.push_back(value); return *this; }
/**
* <p>An array of objects that summarize each forecast's properties.</p>
*/
inline ListForecastsResult& AddForecasts(ForecastSummary&& value) { m_forecasts.push_back(std::move(value)); return *this; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListForecastsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListForecastsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListForecastsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ForecastSummary> m_forecasts;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,275 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Filter.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API ListPredictorsRequest : public ForecastServiceRequest
{
public:
ListPredictorsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListPredictors"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListPredictorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListPredictorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the result of the previous request was truncated, the response includes a
* <code>NextToken</code>. To retrieve the next set of results, use the token in
* the next request. Tokens expire after 24 hours.</p>
*/
inline ListPredictorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The number of items to return in the response.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The number of items to return in the response.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The number of items to return in the response.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The number of items to return in the response.</p>
*/
inline ListPredictorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the predictors that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the predictors that match
* the statement, specify <code>IS</code>. To exclude matching predictors, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all predictors whose status is
* ACTIVE, you would specify:</p> <p> <code>"Filters": [ { "Condition": "IS",
* "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the predictors that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the predictors that match
* the statement, specify <code>IS</code>. To exclude matching predictors, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all predictors whose status is
* ACTIVE, you would specify:</p> <p> <code>"Filters": [ { "Condition": "IS",
* "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the predictors that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the predictors that match
* the statement, specify <code>IS</code>. To exclude matching predictors, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all predictors whose status is
* ACTIVE, you would specify:</p> <p> <code>"Filters": [ { "Condition": "IS",
* "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the predictors that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the predictors that match
* the statement, specify <code>IS</code>. To exclude matching predictors, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all predictors whose status is
* ACTIVE, you would specify:</p> <p> <code>"Filters": [ { "Condition": "IS",
* "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the predictors that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the predictors that match
* the statement, specify <code>IS</code>. To exclude matching predictors, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all predictors whose status is
* ACTIVE, you would specify:</p> <p> <code>"Filters": [ { "Condition": "IS",
* "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline ListPredictorsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the predictors that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the predictors that match
* the statement, specify <code>IS</code>. To exclude matching predictors, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all predictors whose status is
* ACTIVE, you would specify:</p> <p> <code>"Filters": [ { "Condition": "IS",
* "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline ListPredictorsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the predictors that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the predictors that match
* the statement, specify <code>IS</code>. To exclude matching predictors, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all predictors whose status is
* ACTIVE, you would specify:</p> <p> <code>"Filters": [ { "Condition": "IS",
* "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline ListPredictorsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
/**
* <p>An array of filters. For each filter, you provide a condition and a match
* statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which
* specifies whether to include or exclude the predictors that match the statement
* from the list, respectively. The match statement consists of a key and a
* value.</p> <p> <b>Filter properties</b> </p> <ul> <li> <p>
* <code>Condition</code> - The condition to apply. Valid values are
* <code>IS</code> and <code>IS_NOT</code>. To include the predictors that match
* the statement, specify <code>IS</code>. To exclude matching predictors, specify
* <code>IS_NOT</code>.</p> </li> <li> <p> <code>Key</code> - The name of the
* parameter to filter on. Valid values are <code>DatasetGroupArn</code> and
* <code>Status</code>.</p> </li> <li> <p> <code>Value</code> - The value to
* match.</p> </li> </ul> <p>For example, to list all predictors whose status is
* ACTIVE, you would specify:</p> <p> <code>"Filters": [ { "Condition": "IS",
* "Key": "Status", "Value": "ACTIVE" } ]</code> </p>
*/
inline ListPredictorsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::Vector<Filter> m_filters;
bool m_filtersHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/PredictorSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API ListPredictorsResult
{
public:
ListPredictorsResult();
ListPredictorsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListPredictorsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of objects that summarize each predictor's properties.</p>
*/
inline const Aws::Vector<PredictorSummary>& GetPredictors() const{ return m_predictors; }
/**
* <p>An array of objects that summarize each predictor's properties.</p>
*/
inline void SetPredictors(const Aws::Vector<PredictorSummary>& value) { m_predictors = value; }
/**
* <p>An array of objects that summarize each predictor's properties.</p>
*/
inline void SetPredictors(Aws::Vector<PredictorSummary>&& value) { m_predictors = std::move(value); }
/**
* <p>An array of objects that summarize each predictor's properties.</p>
*/
inline ListPredictorsResult& WithPredictors(const Aws::Vector<PredictorSummary>& value) { SetPredictors(value); return *this;}
/**
* <p>An array of objects that summarize each predictor's properties.</p>
*/
inline ListPredictorsResult& WithPredictors(Aws::Vector<PredictorSummary>&& value) { SetPredictors(std::move(value)); return *this;}
/**
* <p>An array of objects that summarize each predictor's properties.</p>
*/
inline ListPredictorsResult& AddPredictors(const PredictorSummary& value) { m_predictors.push_back(value); return *this; }
/**
* <p>An array of objects that summarize each predictor's properties.</p>
*/
inline ListPredictorsResult& AddPredictors(PredictorSummary&& value) { m_predictors.push_back(std::move(value)); return *this; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListPredictorsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListPredictorsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the response is truncated, Amazon Forecast returns this token. To retrieve
* the next set of results, use the token in the next request.</p>
*/
inline ListPredictorsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<PredictorSummary> m_predictors;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,109 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API ListTagsForResourceRequest : public ForecastServiceRequest
{
public:
ListTagsForResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The tags for the resource.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the resource.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>The tags for the resource.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>The tags for the resource.</p>
*/
inline ListTagsForResourceResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the resource.</p>
*/
inline ListTagsForResourceResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the resource.</p>
*/
inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>The tags for the resource.</p>
*/
inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Tag> m_tags;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/WeightedQuantileLoss.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides metrics that are used to evaluate the performance of a predictor.
* This object is part of the <a>WindowSummary</a> object.</p><p><h3>See Also:</h3>
* <a href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/Metrics">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API Metrics
{
public:
Metrics();
Metrics(Aws::Utils::Json::JsonView jsonValue);
Metrics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The root mean square error (RMSE).</p>
*/
inline double GetRMSE() const{ return m_rMSE; }
/**
* <p>The root mean square error (RMSE).</p>
*/
inline bool RMSEHasBeenSet() const { return m_rMSEHasBeenSet; }
/**
* <p>The root mean square error (RMSE).</p>
*/
inline void SetRMSE(double value) { m_rMSEHasBeenSet = true; m_rMSE = value; }
/**
* <p>The root mean square error (RMSE).</p>
*/
inline Metrics& WithRMSE(double value) { SetRMSE(value); return *this;}
/**
* <p>An array of weighted quantile losses. Quantiles divide a probability
* distribution into regions of equal probability. The distribution in this case is
* the loss function.</p>
*/
inline const Aws::Vector<WeightedQuantileLoss>& GetWeightedQuantileLosses() const{ return m_weightedQuantileLosses; }
/**
* <p>An array of weighted quantile losses. Quantiles divide a probability
* distribution into regions of equal probability. The distribution in this case is
* the loss function.</p>
*/
inline bool WeightedQuantileLossesHasBeenSet() const { return m_weightedQuantileLossesHasBeenSet; }
/**
* <p>An array of weighted quantile losses. Quantiles divide a probability
* distribution into regions of equal probability. The distribution in this case is
* the loss function.</p>
*/
inline void SetWeightedQuantileLosses(const Aws::Vector<WeightedQuantileLoss>& value) { m_weightedQuantileLossesHasBeenSet = true; m_weightedQuantileLosses = value; }
/**
* <p>An array of weighted quantile losses. Quantiles divide a probability
* distribution into regions of equal probability. The distribution in this case is
* the loss function.</p>
*/
inline void SetWeightedQuantileLosses(Aws::Vector<WeightedQuantileLoss>&& value) { m_weightedQuantileLossesHasBeenSet = true; m_weightedQuantileLosses = std::move(value); }
/**
* <p>An array of weighted quantile losses. Quantiles divide a probability
* distribution into regions of equal probability. The distribution in this case is
* the loss function.</p>
*/
inline Metrics& WithWeightedQuantileLosses(const Aws::Vector<WeightedQuantileLoss>& value) { SetWeightedQuantileLosses(value); return *this;}
/**
* <p>An array of weighted quantile losses. Quantiles divide a probability
* distribution into regions of equal probability. The distribution in this case is
* the loss function.</p>
*/
inline Metrics& WithWeightedQuantileLosses(Aws::Vector<WeightedQuantileLoss>&& value) { SetWeightedQuantileLosses(std::move(value)); return *this;}
/**
* <p>An array of weighted quantile losses. Quantiles divide a probability
* distribution into regions of equal probability. The distribution in this case is
* the loss function.</p>
*/
inline Metrics& AddWeightedQuantileLosses(const WeightedQuantileLoss& value) { m_weightedQuantileLossesHasBeenSet = true; m_weightedQuantileLosses.push_back(value); return *this; }
/**
* <p>An array of weighted quantile losses. Quantiles divide a probability
* distribution into regions of equal probability. The distribution in this case is
* the loss function.</p>
*/
inline Metrics& AddWeightedQuantileLosses(WeightedQuantileLoss&& value) { m_weightedQuantileLossesHasBeenSet = true; m_weightedQuantileLosses.push_back(std::move(value)); return *this; }
private:
double m_rMSE;
bool m_rMSEHasBeenSet;
Aws::Vector<WeightedQuantileLoss> m_weightedQuantileLosses;
bool m_weightedQuantileLossesHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/CategoricalParameterRange.h>
#include <aws/forecast/model/ContinuousParameterRange.h>
#include <aws/forecast/model/IntegerParameterRange.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Specifies the categorical, continuous, and integer hyperparameters, and their
* ranges of tunable values. The range of tunable values determines which values
* that a hyperparameter tuning job can choose for the specified hyperparameter.
* This object is part of the <a>HyperParameterTuningJobConfig</a>
* object.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/ParameterRanges">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API ParameterRanges
{
public:
ParameterRanges();
ParameterRanges(Aws::Utils::Json::JsonView jsonValue);
ParameterRanges& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the tunable range for each categorical hyperparameter.</p>
*/
inline const Aws::Vector<CategoricalParameterRange>& GetCategoricalParameterRanges() const{ return m_categoricalParameterRanges; }
/**
* <p>Specifies the tunable range for each categorical hyperparameter.</p>
*/
inline bool CategoricalParameterRangesHasBeenSet() const { return m_categoricalParameterRangesHasBeenSet; }
/**
* <p>Specifies the tunable range for each categorical hyperparameter.</p>
*/
inline void SetCategoricalParameterRanges(const Aws::Vector<CategoricalParameterRange>& value) { m_categoricalParameterRangesHasBeenSet = true; m_categoricalParameterRanges = value; }
/**
* <p>Specifies the tunable range for each categorical hyperparameter.</p>
*/
inline void SetCategoricalParameterRanges(Aws::Vector<CategoricalParameterRange>&& value) { m_categoricalParameterRangesHasBeenSet = true; m_categoricalParameterRanges = std::move(value); }
/**
* <p>Specifies the tunable range for each categorical hyperparameter.</p>
*/
inline ParameterRanges& WithCategoricalParameterRanges(const Aws::Vector<CategoricalParameterRange>& value) { SetCategoricalParameterRanges(value); return *this;}
/**
* <p>Specifies the tunable range for each categorical hyperparameter.</p>
*/
inline ParameterRanges& WithCategoricalParameterRanges(Aws::Vector<CategoricalParameterRange>&& value) { SetCategoricalParameterRanges(std::move(value)); return *this;}
/**
* <p>Specifies the tunable range for each categorical hyperparameter.</p>
*/
inline ParameterRanges& AddCategoricalParameterRanges(const CategoricalParameterRange& value) { m_categoricalParameterRangesHasBeenSet = true; m_categoricalParameterRanges.push_back(value); return *this; }
/**
* <p>Specifies the tunable range for each categorical hyperparameter.</p>
*/
inline ParameterRanges& AddCategoricalParameterRanges(CategoricalParameterRange&& value) { m_categoricalParameterRangesHasBeenSet = true; m_categoricalParameterRanges.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the tunable range for each continuous hyperparameter.</p>
*/
inline const Aws::Vector<ContinuousParameterRange>& GetContinuousParameterRanges() const{ return m_continuousParameterRanges; }
/**
* <p>Specifies the tunable range for each continuous hyperparameter.</p>
*/
inline bool ContinuousParameterRangesHasBeenSet() const { return m_continuousParameterRangesHasBeenSet; }
/**
* <p>Specifies the tunable range for each continuous hyperparameter.</p>
*/
inline void SetContinuousParameterRanges(const Aws::Vector<ContinuousParameterRange>& value) { m_continuousParameterRangesHasBeenSet = true; m_continuousParameterRanges = value; }
/**
* <p>Specifies the tunable range for each continuous hyperparameter.</p>
*/
inline void SetContinuousParameterRanges(Aws::Vector<ContinuousParameterRange>&& value) { m_continuousParameterRangesHasBeenSet = true; m_continuousParameterRanges = std::move(value); }
/**
* <p>Specifies the tunable range for each continuous hyperparameter.</p>
*/
inline ParameterRanges& WithContinuousParameterRanges(const Aws::Vector<ContinuousParameterRange>& value) { SetContinuousParameterRanges(value); return *this;}
/**
* <p>Specifies the tunable range for each continuous hyperparameter.</p>
*/
inline ParameterRanges& WithContinuousParameterRanges(Aws::Vector<ContinuousParameterRange>&& value) { SetContinuousParameterRanges(std::move(value)); return *this;}
/**
* <p>Specifies the tunable range for each continuous hyperparameter.</p>
*/
inline ParameterRanges& AddContinuousParameterRanges(const ContinuousParameterRange& value) { m_continuousParameterRangesHasBeenSet = true; m_continuousParameterRanges.push_back(value); return *this; }
/**
* <p>Specifies the tunable range for each continuous hyperparameter.</p>
*/
inline ParameterRanges& AddContinuousParameterRanges(ContinuousParameterRange&& value) { m_continuousParameterRangesHasBeenSet = true; m_continuousParameterRanges.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the tunable range for each integer hyperparameter.</p>
*/
inline const Aws::Vector<IntegerParameterRange>& GetIntegerParameterRanges() const{ return m_integerParameterRanges; }
/**
* <p>Specifies the tunable range for each integer hyperparameter.</p>
*/
inline bool IntegerParameterRangesHasBeenSet() const { return m_integerParameterRangesHasBeenSet; }
/**
* <p>Specifies the tunable range for each integer hyperparameter.</p>
*/
inline void SetIntegerParameterRanges(const Aws::Vector<IntegerParameterRange>& value) { m_integerParameterRangesHasBeenSet = true; m_integerParameterRanges = value; }
/**
* <p>Specifies the tunable range for each integer hyperparameter.</p>
*/
inline void SetIntegerParameterRanges(Aws::Vector<IntegerParameterRange>&& value) { m_integerParameterRangesHasBeenSet = true; m_integerParameterRanges = std::move(value); }
/**
* <p>Specifies the tunable range for each integer hyperparameter.</p>
*/
inline ParameterRanges& WithIntegerParameterRanges(const Aws::Vector<IntegerParameterRange>& value) { SetIntegerParameterRanges(value); return *this;}
/**
* <p>Specifies the tunable range for each integer hyperparameter.</p>
*/
inline ParameterRanges& WithIntegerParameterRanges(Aws::Vector<IntegerParameterRange>&& value) { SetIntegerParameterRanges(std::move(value)); return *this;}
/**
* <p>Specifies the tunable range for each integer hyperparameter.</p>
*/
inline ParameterRanges& AddIntegerParameterRanges(const IntegerParameterRange& value) { m_integerParameterRangesHasBeenSet = true; m_integerParameterRanges.push_back(value); return *this; }
/**
* <p>Specifies the tunable range for each integer hyperparameter.</p>
*/
inline ParameterRanges& AddIntegerParameterRanges(IntegerParameterRange&& value) { m_integerParameterRangesHasBeenSet = true; m_integerParameterRanges.push_back(std::move(value)); return *this; }
private:
Aws::Vector<CategoricalParameterRange> m_categoricalParameterRanges;
bool m_categoricalParameterRangesHasBeenSet;
Aws::Vector<ContinuousParameterRange> m_continuousParameterRanges;
bool m_continuousParameterRangesHasBeenSet;
Aws::Vector<IntegerParameterRange> m_integerParameterRanges;
bool m_integerParameterRangesHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/TestWindowSummary.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The algorithm used to perform a backtest and the status of those
* tests.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/PredictorExecution">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API PredictorExecution
{
public:
PredictorExecution();
PredictorExecution(Aws::Utils::Json::JsonView jsonValue);
PredictorExecution& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the algorithm used to test the predictor.</p>
*/
inline const Aws::String& GetAlgorithmArn() const{ return m_algorithmArn; }
/**
* <p>The ARN of the algorithm used to test the predictor.</p>
*/
inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
/**
* <p>The ARN of the algorithm used to test the predictor.</p>
*/
inline void SetAlgorithmArn(const Aws::String& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = value; }
/**
* <p>The ARN of the algorithm used to test the predictor.</p>
*/
inline void SetAlgorithmArn(Aws::String&& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = std::move(value); }
/**
* <p>The ARN of the algorithm used to test the predictor.</p>
*/
inline void SetAlgorithmArn(const char* value) { m_algorithmArnHasBeenSet = true; m_algorithmArn.assign(value); }
/**
* <p>The ARN of the algorithm used to test the predictor.</p>
*/
inline PredictorExecution& WithAlgorithmArn(const Aws::String& value) { SetAlgorithmArn(value); return *this;}
/**
* <p>The ARN of the algorithm used to test the predictor.</p>
*/
inline PredictorExecution& WithAlgorithmArn(Aws::String&& value) { SetAlgorithmArn(std::move(value)); return *this;}
/**
* <p>The ARN of the algorithm used to test the predictor.</p>
*/
inline PredictorExecution& WithAlgorithmArn(const char* value) { SetAlgorithmArn(value); return *this;}
/**
* <p>An array of test windows used to evaluate the algorithm. The
* <code>NumberOfBacktestWindows</code> from the object determines the number of
* windows in the array.</p>
*/
inline const Aws::Vector<TestWindowSummary>& GetTestWindows() const{ return m_testWindows; }
/**
* <p>An array of test windows used to evaluate the algorithm. The
* <code>NumberOfBacktestWindows</code> from the object determines the number of
* windows in the array.</p>
*/
inline bool TestWindowsHasBeenSet() const { return m_testWindowsHasBeenSet; }
/**
* <p>An array of test windows used to evaluate the algorithm. The
* <code>NumberOfBacktestWindows</code> from the object determines the number of
* windows in the array.</p>
*/
inline void SetTestWindows(const Aws::Vector<TestWindowSummary>& value) { m_testWindowsHasBeenSet = true; m_testWindows = value; }
/**
* <p>An array of test windows used to evaluate the algorithm. The
* <code>NumberOfBacktestWindows</code> from the object determines the number of
* windows in the array.</p>
*/
inline void SetTestWindows(Aws::Vector<TestWindowSummary>&& value) { m_testWindowsHasBeenSet = true; m_testWindows = std::move(value); }
/**
* <p>An array of test windows used to evaluate the algorithm. The
* <code>NumberOfBacktestWindows</code> from the object determines the number of
* windows in the array.</p>
*/
inline PredictorExecution& WithTestWindows(const Aws::Vector<TestWindowSummary>& value) { SetTestWindows(value); return *this;}
/**
* <p>An array of test windows used to evaluate the algorithm. The
* <code>NumberOfBacktestWindows</code> from the object determines the number of
* windows in the array.</p>
*/
inline PredictorExecution& WithTestWindows(Aws::Vector<TestWindowSummary>&& value) { SetTestWindows(std::move(value)); return *this;}
/**
* <p>An array of test windows used to evaluate the algorithm. The
* <code>NumberOfBacktestWindows</code> from the object determines the number of
* windows in the array.</p>
*/
inline PredictorExecution& AddTestWindows(const TestWindowSummary& value) { m_testWindowsHasBeenSet = true; m_testWindows.push_back(value); return *this; }
/**
* <p>An array of test windows used to evaluate the algorithm. The
* <code>NumberOfBacktestWindows</code> from the object determines the number of
* windows in the array.</p>
*/
inline PredictorExecution& AddTestWindows(TestWindowSummary&& value) { m_testWindowsHasBeenSet = true; m_testWindows.push_back(std::move(value)); return *this; }
private:
Aws::String m_algorithmArn;
bool m_algorithmArnHasBeenSet;
Aws::Vector<TestWindowSummary> m_testWindows;
bool m_testWindowsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,108 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/PredictorExecution.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Contains details on the backtests performed to evaluate the accuracy of the
* predictor. The tests are returned in descending order of accuracy, with the most
* accurate backtest appearing first. You specify the number of backtests to
* perform when you call the operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/PredictorExecutionDetails">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API PredictorExecutionDetails
{
public:
PredictorExecutionDetails();
PredictorExecutionDetails(Aws::Utils::Json::JsonView jsonValue);
PredictorExecutionDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An array of the backtests performed to evaluate the accuracy of the predictor
* against a particular algorithm. The <code>NumberOfBacktestWindows</code> from
* the object determines the number of windows in the array.</p>
*/
inline const Aws::Vector<PredictorExecution>& GetPredictorExecutions() const{ return m_predictorExecutions; }
/**
* <p>An array of the backtests performed to evaluate the accuracy of the predictor
* against a particular algorithm. The <code>NumberOfBacktestWindows</code> from
* the object determines the number of windows in the array.</p>
*/
inline bool PredictorExecutionsHasBeenSet() const { return m_predictorExecutionsHasBeenSet; }
/**
* <p>An array of the backtests performed to evaluate the accuracy of the predictor
* against a particular algorithm. The <code>NumberOfBacktestWindows</code> from
* the object determines the number of windows in the array.</p>
*/
inline void SetPredictorExecutions(const Aws::Vector<PredictorExecution>& value) { m_predictorExecutionsHasBeenSet = true; m_predictorExecutions = value; }
/**
* <p>An array of the backtests performed to evaluate the accuracy of the predictor
* against a particular algorithm. The <code>NumberOfBacktestWindows</code> from
* the object determines the number of windows in the array.</p>
*/
inline void SetPredictorExecutions(Aws::Vector<PredictorExecution>&& value) { m_predictorExecutionsHasBeenSet = true; m_predictorExecutions = std::move(value); }
/**
* <p>An array of the backtests performed to evaluate the accuracy of the predictor
* against a particular algorithm. The <code>NumberOfBacktestWindows</code> from
* the object determines the number of windows in the array.</p>
*/
inline PredictorExecutionDetails& WithPredictorExecutions(const Aws::Vector<PredictorExecution>& value) { SetPredictorExecutions(value); return *this;}
/**
* <p>An array of the backtests performed to evaluate the accuracy of the predictor
* against a particular algorithm. The <code>NumberOfBacktestWindows</code> from
* the object determines the number of windows in the array.</p>
*/
inline PredictorExecutionDetails& WithPredictorExecutions(Aws::Vector<PredictorExecution>&& value) { SetPredictorExecutions(std::move(value)); return *this;}
/**
* <p>An array of the backtests performed to evaluate the accuracy of the predictor
* against a particular algorithm. The <code>NumberOfBacktestWindows</code> from
* the object determines the number of windows in the array.</p>
*/
inline PredictorExecutionDetails& AddPredictorExecutions(const PredictorExecution& value) { m_predictorExecutionsHasBeenSet = true; m_predictorExecutions.push_back(value); return *this; }
/**
* <p>An array of the backtests performed to evaluate the accuracy of the predictor
* against a particular algorithm. The <code>NumberOfBacktestWindows</code> from
* the object determines the number of windows in the array.</p>
*/
inline PredictorExecutionDetails& AddPredictorExecutions(PredictorExecution&& value) { m_predictorExecutionsHasBeenSet = true; m_predictorExecutions.push_back(std::move(value)); return *this; }
private:
Aws::Vector<PredictorExecution> m_predictorExecutions;
bool m_predictorExecutionsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,424 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides a summary of the predictor properties that are used in the
* <a>ListPredictors</a> operation. To get the complete set of properties, call the
* <a>DescribePredictor</a> operation, and provide the listed
* <code>PredictorArn</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/PredictorSummary">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API PredictorSummary
{
public:
PredictorSummary();
PredictorSummary(Aws::Utils::Json::JsonView jsonValue);
PredictorSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the predictor.</p>
*/
inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; }
/**
* <p>The ARN of the predictor.</p>
*/
inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; }
/**
* <p>The ARN of the predictor.</p>
*/
inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; }
/**
* <p>The ARN of the predictor.</p>
*/
inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); }
/**
* <p>The ARN of the predictor.</p>
*/
inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); }
/**
* <p>The ARN of the predictor.</p>
*/
inline PredictorSummary& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;}
/**
* <p>The ARN of the predictor.</p>
*/
inline PredictorSummary& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;}
/**
* <p>The ARN of the predictor.</p>
*/
inline PredictorSummary& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;}
/**
* <p>The name of the predictor.</p>
*/
inline const Aws::String& GetPredictorName() const{ return m_predictorName; }
/**
* <p>The name of the predictor.</p>
*/
inline bool PredictorNameHasBeenSet() const { return m_predictorNameHasBeenSet; }
/**
* <p>The name of the predictor.</p>
*/
inline void SetPredictorName(const Aws::String& value) { m_predictorNameHasBeenSet = true; m_predictorName = value; }
/**
* <p>The name of the predictor.</p>
*/
inline void SetPredictorName(Aws::String&& value) { m_predictorNameHasBeenSet = true; m_predictorName = std::move(value); }
/**
* <p>The name of the predictor.</p>
*/
inline void SetPredictorName(const char* value) { m_predictorNameHasBeenSet = true; m_predictorName.assign(value); }
/**
* <p>The name of the predictor.</p>
*/
inline PredictorSummary& WithPredictorName(const Aws::String& value) { SetPredictorName(value); return *this;}
/**
* <p>The name of the predictor.</p>
*/
inline PredictorSummary& WithPredictorName(Aws::String&& value) { SetPredictorName(std::move(value)); return *this;}
/**
* <p>The name of the predictor.</p>
*/
inline PredictorSummary& WithPredictorName(const char* value) { SetPredictorName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that contains the data
* used to train the predictor.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that contains the data
* used to train the predictor.</p>
*/
inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that contains the data
* used to train the predictor.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that contains the data
* used to train the predictor.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that contains the data
* used to train the predictor.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that contains the data
* used to train the predictor.</p>
*/
inline PredictorSummary& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that contains the data
* used to train the predictor.</p>
*/
inline PredictorSummary& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the dataset group that contains the data
* used to train the predictor.</p>
*/
inline PredictorSummary& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline PredictorSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline PredictorSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the predictor. States include:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_PENDING</code>,
* <code>CREATE_IN_PROGRESS</code>, <code>CREATE_FAILED</code> </p> </li> <li> <p>
* <code>DELETE_PENDING</code>, <code>DELETE_IN_PROGRESS</code>,
* <code>DELETE_FAILED</code> </p> </li> <li> <p> <code>UPDATE_PENDING</code>,
* <code>UPDATE_IN_PROGRESS</code>, <code>UPDATE_FAILED</code> </p> </li> </ul>
* <p>The <code>Status</code> of the predictor must be <code>ACTIVE</code>
* before you can use the predictor to create a forecast.</p>
*/
inline PredictorSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline PredictorSummary& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline PredictorSummary& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If an error occurred, an informational message about the error.</p>
*/
inline PredictorSummary& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>When the model training task was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the model training task was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>When the model training task was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>When the model training task was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>When the model training task was created.</p>
*/
inline PredictorSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the model training task was created.</p>
*/
inline PredictorSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when training starts (status changed to
* <code>CREATE_IN_PROGRESS</code>), and when training is complete (status changed
* to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when training starts (status changed to
* <code>CREATE_IN_PROGRESS</code>), and when training is complete (status changed
* to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when training starts (status changed to
* <code>CREATE_IN_PROGRESS</code>), and when training is complete (status changed
* to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when training starts (status changed to
* <code>CREATE_IN_PROGRESS</code>), and when training is complete (status changed
* to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when training starts (status changed to
* <code>CREATE_IN_PROGRESS</code>), and when training is complete (status changed
* to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline PredictorSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
/**
* <p>Initially, the same as <code>CreationTime</code> (status is
* <code>CREATE_PENDING</code>). Updated when training starts (status changed to
* <code>CREATE_IN_PROGRESS</code>), and when training is complete (status changed
* to <code>ACTIVE</code>) or fails (status changed to
* <code>CREATE_FAILED</code>).</p>
*/
inline PredictorSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
private:
Aws::String m_predictorArn;
bool m_predictorArnHasBeenSet;
Aws::String m_predictorName;
bool m_predictorNameHasBeenSet;
Aws::String m_datasetGroupArn;
bool m_datasetGroupArnHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastModificationTime;
bool m_lastModificationTimeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,238 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The path to the file(s) in an Amazon Simple Storage Service (Amazon S3)
* bucket, and an AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the file(s). Optionally, includes an AWS Key
* Management Service (KMS) key. This object is part of the <a>DataSource</a>
* object that is submitted in the <a>CreateDatasetImportJob</a> request, and part
* of the <a>DataDestination</a> object that is submitted in the
* <a>CreateForecastExportJob</a> request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/S3Config">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API S3Config
{
public:
S3Config();
S3Config(Aws::Utils::Json::JsonView jsonValue);
S3Config& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in
* an Amazon S3 bucket.</p>
*/
inline const Aws::String& GetPath() const{ return m_path; }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in
* an Amazon S3 bucket.</p>
*/
inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in
* an Amazon S3 bucket.</p>
*/
inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in
* an Amazon S3 bucket.</p>
*/
inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in
* an Amazon S3 bucket.</p>
*/
inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in
* an Amazon S3 bucket.</p>
*/
inline S3Config& WithPath(const Aws::String& value) { SetPath(value); return *this;}
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in
* an Amazon S3 bucket.</p>
*/
inline S3Config& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
/**
* <p>The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in
* an Amazon S3 bucket.</p>
*/
inline S3Config& WithPath(const char* value) { SetPath(value); return *this;}
/**
* <p>The ARN of the AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the Amazon S3 bucket or files. If you provide a
* value for the <code>KMSKeyArn</code> key, the role must allow access to the
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The ARN of the AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the Amazon S3 bucket or files. If you provide a
* value for the <code>KMSKeyArn</code> key, the role must allow access to the
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The ARN of the AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the Amazon S3 bucket or files. If you provide a
* value for the <code>KMSKeyArn</code> key, the role must allow access to the
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The ARN of the AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the Amazon S3 bucket or files. If you provide a
* value for the <code>KMSKeyArn</code> key, the role must allow access to the
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The ARN of the AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the Amazon S3 bucket or files. If you provide a
* value for the <code>KMSKeyArn</code> key, the role must allow access to the
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The ARN of the AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the Amazon S3 bucket or files. If you provide a
* value for the <code>KMSKeyArn</code> key, the role must allow access to the
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline S3Config& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The ARN of the AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the Amazon S3 bucket or files. If you provide a
* value for the <code>KMSKeyArn</code> key, the role must allow access to the
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline S3Config& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of the AWS Identity and Access Management (IAM) role that Amazon
* Forecast can assume to access the Amazon S3 bucket or files. If you provide a
* value for the <code>KMSKeyArn</code> key, the role must allow access to the
* key.</p> <p>Passing a role across AWS accounts is not allowed. If you pass a
* role that isn't in your account, you get an <code>InvalidInputException</code>
* error.</p>
*/
inline S3Config& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS)
* key.</p>
*/
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
/**
* <p>The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS)
* key.</p>
*/
inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS)
* key.</p>
*/
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS)
* key.</p>
*/
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS)
* key.</p>
*/
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS)
* key.</p>
*/
inline S3Config& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS)
* key.</p>
*/
inline S3Config& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS)
* key.</p>
*/
inline S3Config& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
private:
Aws::String m_path;
bool m_pathHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::String m_kMSKeyArn;
bool m_kMSKeyArnHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
enum class ScalingType
{
NOT_SET,
Auto,
Linear,
Logarithmic,
ReverseLogarithmic
};
namespace ScalingTypeMapper
{
AWS_FORECASTSERVICE_API ScalingType GetScalingTypeForName(const Aws::String& name);
AWS_FORECASTSERVICE_API Aws::String GetNameForScalingType(ScalingType value);
} // namespace ScalingTypeMapper
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/SchemaAttribute.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Defines the fields of a dataset. You specify this object in the
* <a>CreateDataset</a> request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/Schema">AWS API
* Reference</a></p>
*/
class AWS_FORECASTSERVICE_API Schema
{
public:
Schema();
Schema(Aws::Utils::Json::JsonView jsonValue);
Schema& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An array of attributes specifying the name and type of each field in a
* dataset.</p>
*/
inline const Aws::Vector<SchemaAttribute>& GetAttributes() const{ return m_attributes; }
/**
* <p>An array of attributes specifying the name and type of each field in a
* dataset.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>An array of attributes specifying the name and type of each field in a
* dataset.</p>
*/
inline void SetAttributes(const Aws::Vector<SchemaAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>An array of attributes specifying the name and type of each field in a
* dataset.</p>
*/
inline void SetAttributes(Aws::Vector<SchemaAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>An array of attributes specifying the name and type of each field in a
* dataset.</p>
*/
inline Schema& WithAttributes(const Aws::Vector<SchemaAttribute>& value) { SetAttributes(value); return *this;}
/**
* <p>An array of attributes specifying the name and type of each field in a
* dataset.</p>
*/
inline Schema& WithAttributes(Aws::Vector<SchemaAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>An array of attributes specifying the name and type of each field in a
* dataset.</p>
*/
inline Schema& AddAttributes(const SchemaAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
/**
* <p>An array of attributes specifying the name and type of each field in a
* dataset.</p>
*/
inline Schema& AddAttributes(SchemaAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
private:
Aws::Vector<SchemaAttribute> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,125 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/forecast/model/AttributeType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>An attribute of a schema, which defines a dataset field. A schema attribute
* is required for every field in a dataset. The <a>Schema</a> object contains an
* array of <code>SchemaAttribute</code> objects.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/SchemaAttribute">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API SchemaAttribute
{
public:
SchemaAttribute();
SchemaAttribute(Aws::Utils::Json::JsonView jsonValue);
SchemaAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the dataset field.</p>
*/
inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
/**
* <p>The name of the dataset field.</p>
*/
inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
/**
* <p>The name of the dataset field.</p>
*/
inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
/**
* <p>The name of the dataset field.</p>
*/
inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
/**
* <p>The name of the dataset field.</p>
*/
inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
/**
* <p>The name of the dataset field.</p>
*/
inline SchemaAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
/**
* <p>The name of the dataset field.</p>
*/
inline SchemaAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
/**
* <p>The name of the dataset field.</p>
*/
inline SchemaAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
/**
* <p>The data type of the field.</p>
*/
inline const AttributeType& GetAttributeType() const{ return m_attributeType; }
/**
* <p>The data type of the field.</p>
*/
inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
/**
* <p>The data type of the field.</p>
*/
inline void SetAttributeType(const AttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
/**
* <p>The data type of the field.</p>
*/
inline void SetAttributeType(AttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); }
/**
* <p>The data type of the field.</p>
*/
inline SchemaAttribute& WithAttributeType(const AttributeType& value) { SetAttributeType(value); return *this;}
/**
* <p>The data type of the field.</p>
*/
inline SchemaAttribute& WithAttributeType(AttributeType&& value) { SetAttributeType(std::move(value)); return *this;}
private:
Aws::String m_attributeName;
bool m_attributeNameHasBeenSet;
AttributeType m_attributeType;
bool m_attributeTypeHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,278 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Provides statistics for each data field imported into to an Amazon Forecast
* dataset with the <a>CreateDatasetImportJob</a> operation.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/Statistics">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API Statistics
{
public:
Statistics();
Statistics(Aws::Utils::Json::JsonView jsonValue);
Statistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of values in the field.</p>
*/
inline int GetCount() const{ return m_count; }
/**
* <p>The number of values in the field.</p>
*/
inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
/**
* <p>The number of values in the field.</p>
*/
inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
/**
* <p>The number of values in the field.</p>
*/
inline Statistics& WithCount(int value) { SetCount(value); return *this;}
/**
* <p>The number of distinct values in the field.</p>
*/
inline int GetCountDistinct() const{ return m_countDistinct; }
/**
* <p>The number of distinct values in the field.</p>
*/
inline bool CountDistinctHasBeenSet() const { return m_countDistinctHasBeenSet; }
/**
* <p>The number of distinct values in the field.</p>
*/
inline void SetCountDistinct(int value) { m_countDistinctHasBeenSet = true; m_countDistinct = value; }
/**
* <p>The number of distinct values in the field.</p>
*/
inline Statistics& WithCountDistinct(int value) { SetCountDistinct(value); return *this;}
/**
* <p>The number of null values in the field.</p>
*/
inline int GetCountNull() const{ return m_countNull; }
/**
* <p>The number of null values in the field.</p>
*/
inline bool CountNullHasBeenSet() const { return m_countNullHasBeenSet; }
/**
* <p>The number of null values in the field.</p>
*/
inline void SetCountNull(int value) { m_countNullHasBeenSet = true; m_countNull = value; }
/**
* <p>The number of null values in the field.</p>
*/
inline Statistics& WithCountNull(int value) { SetCountNull(value); return *this;}
/**
* <p>The number of NAN (not a number) values in the field.</p>
*/
inline int GetCountNan() const{ return m_countNan; }
/**
* <p>The number of NAN (not a number) values in the field.</p>
*/
inline bool CountNanHasBeenSet() const { return m_countNanHasBeenSet; }
/**
* <p>The number of NAN (not a number) values in the field.</p>
*/
inline void SetCountNan(int value) { m_countNanHasBeenSet = true; m_countNan = value; }
/**
* <p>The number of NAN (not a number) values in the field.</p>
*/
inline Statistics& WithCountNan(int value) { SetCountNan(value); return *this;}
/**
* <p>For a numeric field, the minimum value in the field.</p>
*/
inline const Aws::String& GetMin() const{ return m_min; }
/**
* <p>For a numeric field, the minimum value in the field.</p>
*/
inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
/**
* <p>For a numeric field, the minimum value in the field.</p>
*/
inline void SetMin(const Aws::String& value) { m_minHasBeenSet = true; m_min = value; }
/**
* <p>For a numeric field, the minimum value in the field.</p>
*/
inline void SetMin(Aws::String&& value) { m_minHasBeenSet = true; m_min = std::move(value); }
/**
* <p>For a numeric field, the minimum value in the field.</p>
*/
inline void SetMin(const char* value) { m_minHasBeenSet = true; m_min.assign(value); }
/**
* <p>For a numeric field, the minimum value in the field.</p>
*/
inline Statistics& WithMin(const Aws::String& value) { SetMin(value); return *this;}
/**
* <p>For a numeric field, the minimum value in the field.</p>
*/
inline Statistics& WithMin(Aws::String&& value) { SetMin(std::move(value)); return *this;}
/**
* <p>For a numeric field, the minimum value in the field.</p>
*/
inline Statistics& WithMin(const char* value) { SetMin(value); return *this;}
/**
* <p>For a numeric field, the maximum value in the field.</p>
*/
inline const Aws::String& GetMax() const{ return m_max; }
/**
* <p>For a numeric field, the maximum value in the field.</p>
*/
inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
/**
* <p>For a numeric field, the maximum value in the field.</p>
*/
inline void SetMax(const Aws::String& value) { m_maxHasBeenSet = true; m_max = value; }
/**
* <p>For a numeric field, the maximum value in the field.</p>
*/
inline void SetMax(Aws::String&& value) { m_maxHasBeenSet = true; m_max = std::move(value); }
/**
* <p>For a numeric field, the maximum value in the field.</p>
*/
inline void SetMax(const char* value) { m_maxHasBeenSet = true; m_max.assign(value); }
/**
* <p>For a numeric field, the maximum value in the field.</p>
*/
inline Statistics& WithMax(const Aws::String& value) { SetMax(value); return *this;}
/**
* <p>For a numeric field, the maximum value in the field.</p>
*/
inline Statistics& WithMax(Aws::String&& value) { SetMax(std::move(value)); return *this;}
/**
* <p>For a numeric field, the maximum value in the field.</p>
*/
inline Statistics& WithMax(const char* value) { SetMax(value); return *this;}
/**
* <p>For a numeric field, the average value in the field.</p>
*/
inline double GetAvg() const{ return m_avg; }
/**
* <p>For a numeric field, the average value in the field.</p>
*/
inline bool AvgHasBeenSet() const { return m_avgHasBeenSet; }
/**
* <p>For a numeric field, the average value in the field.</p>
*/
inline void SetAvg(double value) { m_avgHasBeenSet = true; m_avg = value; }
/**
* <p>For a numeric field, the average value in the field.</p>
*/
inline Statistics& WithAvg(double value) { SetAvg(value); return *this;}
/**
* <p>For a numeric field, the standard deviation.</p>
*/
inline double GetStddev() const{ return m_stddev; }
/**
* <p>For a numeric field, the standard deviation.</p>
*/
inline bool StddevHasBeenSet() const { return m_stddevHasBeenSet; }
/**
* <p>For a numeric field, the standard deviation.</p>
*/
inline void SetStddev(double value) { m_stddevHasBeenSet = true; m_stddev = value; }
/**
* <p>For a numeric field, the standard deviation.</p>
*/
inline Statistics& WithStddev(double value) { SetStddev(value); return *this;}
private:
int m_count;
bool m_countHasBeenSet;
int m_countDistinct;
bool m_countDistinctHasBeenSet;
int m_countNull;
bool m_countNullHasBeenSet;
int m_countNan;
bool m_countNanHasBeenSet;
Aws::String m_min;
bool m_minHasBeenSet;
Aws::String m_max;
bool m_maxHasBeenSet;
double m_avg;
bool m_avgHasBeenSet;
double m_stddev;
bool m_stddevHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,260 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>Describes a supplementary feature of a dataset group. This object is part of
* the <a>InputDataConfig</a> object.</p> <p>The only supported feature is a
* holiday calendar. If you use the calendar, all data in the datasets should
* belong to the same country as the calendar. For the holiday calendar data, see
* the <a href="http://jollyday.sourceforge.net/data.html">Jollyday</a> web
* site.</p> <p>India and Korea's holidays are not included in the Jollyday
* library, but both are supported by Amazon Forecast. Their holidays are:</p> <p>
* <b>"IN" - INDIA</b> </p> <ul> <li> <p> <code>JANUARY 26 - REPUBLIC DAY</code>
* </p> </li> <li> <p> <code>AUGUST 15 - INDEPENDENCE DAY</code> </p> </li> <li>
* <p> <code>OCTOBER 2 GANDHI'S BIRTHDAY</code> </p> </li> </ul> <p> <b>"KR" -
* KOREA</b> </p> <ul> <li> <p> <code>JANUARY 1 - NEW YEAR</code> </p> </li> <li>
* <p> <code>MARCH 1 - INDEPENDENCE MOVEMENT DAY</code> </p> </li> <li> <p>
* <code>MAY 5 - CHILDREN'S DAY</code> </p> </li> <li> <p> <code>JUNE 6 - MEMORIAL
* DAY</code> </p> </li> <li> <p> <code>AUGUST 15 - LIBERATION DAY</code> </p>
* </li> <li> <p> <code>OCTOBER 3 - NATIONAL FOUNDATION DAY</code> </p> </li> <li>
* <p> <code>OCTOBER 9 - HANGEUL DAY</code> </p> </li> <li> <p> <code>DECEMBER 25 -
* CHRISTMAS DAY</code> </p> </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/SupplementaryFeature">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API SupplementaryFeature
{
public:
SupplementaryFeature();
SupplementaryFeature(Aws::Utils::Json::JsonView jsonValue);
SupplementaryFeature& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the feature. This must be "holiday".</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the feature. This must be "holiday".</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the feature. This must be "holiday".</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the feature. This must be "holiday".</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the feature. This must be "holiday".</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the feature. This must be "holiday".</p>
*/
inline SupplementaryFeature& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the feature. This must be "holiday".</p>
*/
inline SupplementaryFeature& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the feature. This must be "holiday".</p>
*/
inline SupplementaryFeature& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>One of the following 2 letter country codes:</p> <ul> <li> <p>"AR" -
* ARGENTINA</p> </li> <li> <p>"AT" - AUSTRIA</p> </li> <li> <p>"AU" -
* AUSTRALIA</p> </li> <li> <p>"BE" - BELGIUM</p> </li> <li> <p>"BR" - BRAZIL</p>
* </li> <li> <p>"CA" - CANADA</p> </li> <li> <p>"CN" - CHINA</p> </li> <li>
* <p>"CZ" - CZECH REPUBLIC</p> </li> <li> <p>"DK" - DENMARK</p> </li> <li> <p>"EC"
* - ECUADOR</p> </li> <li> <p>"FI" - FINLAND</p> </li> <li> <p>"FR" - FRANCE</p>
* </li> <li> <p>"DE" - GERMANY</p> </li> <li> <p>"HU" - HUNGARY</p> </li> <li>
* <p>"IE" - IRELAND</p> </li> <li> <p>"IN" - INDIA</p> </li> <li> <p>"IT" -
* ITALY</p> </li> <li> <p>"JP" - JAPAN</p> </li> <li> <p>"KR" - KOREA</p> </li>
* <li> <p>"LU" - LUXEMBOURG</p> </li> <li> <p>"MX" - MEXICO</p> </li> <li> <p>"NL"
* - NETHERLANDS</p> </li> <li> <p>"NO" - NORWAY</p> </li> <li> <p>"PL" -
* POLAND</p> </li> <li> <p>"PT" - PORTUGAL</p> </li> <li> <p>"RU" - RUSSIA</p>
* </li> <li> <p>"ZA" - SOUTH AFRICA</p> </li> <li> <p>"ES" - SPAIN</p> </li> <li>
* <p>"SE" - SWEDEN</p> </li> <li> <p>"CH" - SWITZERLAND</p> </li> <li> <p>"US" -
* UNITED STATES</p> </li> <li> <p>"UK" - UNITED KINGDOM</p> </li> </ul>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>One of the following 2 letter country codes:</p> <ul> <li> <p>"AR" -
* ARGENTINA</p> </li> <li> <p>"AT" - AUSTRIA</p> </li> <li> <p>"AU" -
* AUSTRALIA</p> </li> <li> <p>"BE" - BELGIUM</p> </li> <li> <p>"BR" - BRAZIL</p>
* </li> <li> <p>"CA" - CANADA</p> </li> <li> <p>"CN" - CHINA</p> </li> <li>
* <p>"CZ" - CZECH REPUBLIC</p> </li> <li> <p>"DK" - DENMARK</p> </li> <li> <p>"EC"
* - ECUADOR</p> </li> <li> <p>"FI" - FINLAND</p> </li> <li> <p>"FR" - FRANCE</p>
* </li> <li> <p>"DE" - GERMANY</p> </li> <li> <p>"HU" - HUNGARY</p> </li> <li>
* <p>"IE" - IRELAND</p> </li> <li> <p>"IN" - INDIA</p> </li> <li> <p>"IT" -
* ITALY</p> </li> <li> <p>"JP" - JAPAN</p> </li> <li> <p>"KR" - KOREA</p> </li>
* <li> <p>"LU" - LUXEMBOURG</p> </li> <li> <p>"MX" - MEXICO</p> </li> <li> <p>"NL"
* - NETHERLANDS</p> </li> <li> <p>"NO" - NORWAY</p> </li> <li> <p>"PL" -
* POLAND</p> </li> <li> <p>"PT" - PORTUGAL</p> </li> <li> <p>"RU" - RUSSIA</p>
* </li> <li> <p>"ZA" - SOUTH AFRICA</p> </li> <li> <p>"ES" - SPAIN</p> </li> <li>
* <p>"SE" - SWEDEN</p> </li> <li> <p>"CH" - SWITZERLAND</p> </li> <li> <p>"US" -
* UNITED STATES</p> </li> <li> <p>"UK" - UNITED KINGDOM</p> </li> </ul>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>One of the following 2 letter country codes:</p> <ul> <li> <p>"AR" -
* ARGENTINA</p> </li> <li> <p>"AT" - AUSTRIA</p> </li> <li> <p>"AU" -
* AUSTRALIA</p> </li> <li> <p>"BE" - BELGIUM</p> </li> <li> <p>"BR" - BRAZIL</p>
* </li> <li> <p>"CA" - CANADA</p> </li> <li> <p>"CN" - CHINA</p> </li> <li>
* <p>"CZ" - CZECH REPUBLIC</p> </li> <li> <p>"DK" - DENMARK</p> </li> <li> <p>"EC"
* - ECUADOR</p> </li> <li> <p>"FI" - FINLAND</p> </li> <li> <p>"FR" - FRANCE</p>
* </li> <li> <p>"DE" - GERMANY</p> </li> <li> <p>"HU" - HUNGARY</p> </li> <li>
* <p>"IE" - IRELAND</p> </li> <li> <p>"IN" - INDIA</p> </li> <li> <p>"IT" -
* ITALY</p> </li> <li> <p>"JP" - JAPAN</p> </li> <li> <p>"KR" - KOREA</p> </li>
* <li> <p>"LU" - LUXEMBOURG</p> </li> <li> <p>"MX" - MEXICO</p> </li> <li> <p>"NL"
* - NETHERLANDS</p> </li> <li> <p>"NO" - NORWAY</p> </li> <li> <p>"PL" -
* POLAND</p> </li> <li> <p>"PT" - PORTUGAL</p> </li> <li> <p>"RU" - RUSSIA</p>
* </li> <li> <p>"ZA" - SOUTH AFRICA</p> </li> <li> <p>"ES" - SPAIN</p> </li> <li>
* <p>"SE" - SWEDEN</p> </li> <li> <p>"CH" - SWITZERLAND</p> </li> <li> <p>"US" -
* UNITED STATES</p> </li> <li> <p>"UK" - UNITED KINGDOM</p> </li> </ul>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>One of the following 2 letter country codes:</p> <ul> <li> <p>"AR" -
* ARGENTINA</p> </li> <li> <p>"AT" - AUSTRIA</p> </li> <li> <p>"AU" -
* AUSTRALIA</p> </li> <li> <p>"BE" - BELGIUM</p> </li> <li> <p>"BR" - BRAZIL</p>
* </li> <li> <p>"CA" - CANADA</p> </li> <li> <p>"CN" - CHINA</p> </li> <li>
* <p>"CZ" - CZECH REPUBLIC</p> </li> <li> <p>"DK" - DENMARK</p> </li> <li> <p>"EC"
* - ECUADOR</p> </li> <li> <p>"FI" - FINLAND</p> </li> <li> <p>"FR" - FRANCE</p>
* </li> <li> <p>"DE" - GERMANY</p> </li> <li> <p>"HU" - HUNGARY</p> </li> <li>
* <p>"IE" - IRELAND</p> </li> <li> <p>"IN" - INDIA</p> </li> <li> <p>"IT" -
* ITALY</p> </li> <li> <p>"JP" - JAPAN</p> </li> <li> <p>"KR" - KOREA</p> </li>
* <li> <p>"LU" - LUXEMBOURG</p> </li> <li> <p>"MX" - MEXICO</p> </li> <li> <p>"NL"
* - NETHERLANDS</p> </li> <li> <p>"NO" - NORWAY</p> </li> <li> <p>"PL" -
* POLAND</p> </li> <li> <p>"PT" - PORTUGAL</p> </li> <li> <p>"RU" - RUSSIA</p>
* </li> <li> <p>"ZA" - SOUTH AFRICA</p> </li> <li> <p>"ES" - SPAIN</p> </li> <li>
* <p>"SE" - SWEDEN</p> </li> <li> <p>"CH" - SWITZERLAND</p> </li> <li> <p>"US" -
* UNITED STATES</p> </li> <li> <p>"UK" - UNITED KINGDOM</p> </li> </ul>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>One of the following 2 letter country codes:</p> <ul> <li> <p>"AR" -
* ARGENTINA</p> </li> <li> <p>"AT" - AUSTRIA</p> </li> <li> <p>"AU" -
* AUSTRALIA</p> </li> <li> <p>"BE" - BELGIUM</p> </li> <li> <p>"BR" - BRAZIL</p>
* </li> <li> <p>"CA" - CANADA</p> </li> <li> <p>"CN" - CHINA</p> </li> <li>
* <p>"CZ" - CZECH REPUBLIC</p> </li> <li> <p>"DK" - DENMARK</p> </li> <li> <p>"EC"
* - ECUADOR</p> </li> <li> <p>"FI" - FINLAND</p> </li> <li> <p>"FR" - FRANCE</p>
* </li> <li> <p>"DE" - GERMANY</p> </li> <li> <p>"HU" - HUNGARY</p> </li> <li>
* <p>"IE" - IRELAND</p> </li> <li> <p>"IN" - INDIA</p> </li> <li> <p>"IT" -
* ITALY</p> </li> <li> <p>"JP" - JAPAN</p> </li> <li> <p>"KR" - KOREA</p> </li>
* <li> <p>"LU" - LUXEMBOURG</p> </li> <li> <p>"MX" - MEXICO</p> </li> <li> <p>"NL"
* - NETHERLANDS</p> </li> <li> <p>"NO" - NORWAY</p> </li> <li> <p>"PL" -
* POLAND</p> </li> <li> <p>"PT" - PORTUGAL</p> </li> <li> <p>"RU" - RUSSIA</p>
* </li> <li> <p>"ZA" - SOUTH AFRICA</p> </li> <li> <p>"ES" - SPAIN</p> </li> <li>
* <p>"SE" - SWEDEN</p> </li> <li> <p>"CH" - SWITZERLAND</p> </li> <li> <p>"US" -
* UNITED STATES</p> </li> <li> <p>"UK" - UNITED KINGDOM</p> </li> </ul>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>One of the following 2 letter country codes:</p> <ul> <li> <p>"AR" -
* ARGENTINA</p> </li> <li> <p>"AT" - AUSTRIA</p> </li> <li> <p>"AU" -
* AUSTRALIA</p> </li> <li> <p>"BE" - BELGIUM</p> </li> <li> <p>"BR" - BRAZIL</p>
* </li> <li> <p>"CA" - CANADA</p> </li> <li> <p>"CN" - CHINA</p> </li> <li>
* <p>"CZ" - CZECH REPUBLIC</p> </li> <li> <p>"DK" - DENMARK</p> </li> <li> <p>"EC"
* - ECUADOR</p> </li> <li> <p>"FI" - FINLAND</p> </li> <li> <p>"FR" - FRANCE</p>
* </li> <li> <p>"DE" - GERMANY</p> </li> <li> <p>"HU" - HUNGARY</p> </li> <li>
* <p>"IE" - IRELAND</p> </li> <li> <p>"IN" - INDIA</p> </li> <li> <p>"IT" -
* ITALY</p> </li> <li> <p>"JP" - JAPAN</p> </li> <li> <p>"KR" - KOREA</p> </li>
* <li> <p>"LU" - LUXEMBOURG</p> </li> <li> <p>"MX" - MEXICO</p> </li> <li> <p>"NL"
* - NETHERLANDS</p> </li> <li> <p>"NO" - NORWAY</p> </li> <li> <p>"PL" -
* POLAND</p> </li> <li> <p>"PT" - PORTUGAL</p> </li> <li> <p>"RU" - RUSSIA</p>
* </li> <li> <p>"ZA" - SOUTH AFRICA</p> </li> <li> <p>"ES" - SPAIN</p> </li> <li>
* <p>"SE" - SWEDEN</p> </li> <li> <p>"CH" - SWITZERLAND</p> </li> <li> <p>"US" -
* UNITED STATES</p> </li> <li> <p>"UK" - UNITED KINGDOM</p> </li> </ul>
*/
inline SupplementaryFeature& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>One of the following 2 letter country codes:</p> <ul> <li> <p>"AR" -
* ARGENTINA</p> </li> <li> <p>"AT" - AUSTRIA</p> </li> <li> <p>"AU" -
* AUSTRALIA</p> </li> <li> <p>"BE" - BELGIUM</p> </li> <li> <p>"BR" - BRAZIL</p>
* </li> <li> <p>"CA" - CANADA</p> </li> <li> <p>"CN" - CHINA</p> </li> <li>
* <p>"CZ" - CZECH REPUBLIC</p> </li> <li> <p>"DK" - DENMARK</p> </li> <li> <p>"EC"
* - ECUADOR</p> </li> <li> <p>"FI" - FINLAND</p> </li> <li> <p>"FR" - FRANCE</p>
* </li> <li> <p>"DE" - GERMANY</p> </li> <li> <p>"HU" - HUNGARY</p> </li> <li>
* <p>"IE" - IRELAND</p> </li> <li> <p>"IN" - INDIA</p> </li> <li> <p>"IT" -
* ITALY</p> </li> <li> <p>"JP" - JAPAN</p> </li> <li> <p>"KR" - KOREA</p> </li>
* <li> <p>"LU" - LUXEMBOURG</p> </li> <li> <p>"MX" - MEXICO</p> </li> <li> <p>"NL"
* - NETHERLANDS</p> </li> <li> <p>"NO" - NORWAY</p> </li> <li> <p>"PL" -
* POLAND</p> </li> <li> <p>"PT" - PORTUGAL</p> </li> <li> <p>"RU" - RUSSIA</p>
* </li> <li> <p>"ZA" - SOUTH AFRICA</p> </li> <li> <p>"ES" - SPAIN</p> </li> <li>
* <p>"SE" - SWEDEN</p> </li> <li> <p>"CH" - SWITZERLAND</p> </li> <li> <p>"US" -
* UNITED STATES</p> </li> <li> <p>"UK" - UNITED KINGDOM</p> </li> </ul>
*/
inline SupplementaryFeature& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>One of the following 2 letter country codes:</p> <ul> <li> <p>"AR" -
* ARGENTINA</p> </li> <li> <p>"AT" - AUSTRIA</p> </li> <li> <p>"AU" -
* AUSTRALIA</p> </li> <li> <p>"BE" - BELGIUM</p> </li> <li> <p>"BR" - BRAZIL</p>
* </li> <li> <p>"CA" - CANADA</p> </li> <li> <p>"CN" - CHINA</p> </li> <li>
* <p>"CZ" - CZECH REPUBLIC</p> </li> <li> <p>"DK" - DENMARK</p> </li> <li> <p>"EC"
* - ECUADOR</p> </li> <li> <p>"FI" - FINLAND</p> </li> <li> <p>"FR" - FRANCE</p>
* </li> <li> <p>"DE" - GERMANY</p> </li> <li> <p>"HU" - HUNGARY</p> </li> <li>
* <p>"IE" - IRELAND</p> </li> <li> <p>"IN" - INDIA</p> </li> <li> <p>"IT" -
* ITALY</p> </li> <li> <p>"JP" - JAPAN</p> </li> <li> <p>"KR" - KOREA</p> </li>
* <li> <p>"LU" - LUXEMBOURG</p> </li> <li> <p>"MX" - MEXICO</p> </li> <li> <p>"NL"
* - NETHERLANDS</p> </li> <li> <p>"NO" - NORWAY</p> </li> <li> <p>"PL" -
* POLAND</p> </li> <li> <p>"PT" - PORTUGAL</p> </li> <li> <p>"RU" - RUSSIA</p>
* </li> <li> <p>"ZA" - SOUTH AFRICA</p> </li> <li> <p>"ES" - SPAIN</p> </li> <li>
* <p>"SE" - SWEDEN</p> </li> <li> <p>"CH" - SWITZERLAND</p> </li> <li> <p>"US" -
* UNITED STATES</p> </li> <li> <p>"UK" - UNITED KINGDOM</p> </li> </ul>
*/
inline SupplementaryFeature& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,166 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The optional metadata that you apply to a resource to help you categorize and
* organize them. Each tag consists of a key and an optional value, both of which
* you define.</p> <p>The following basic restrictions apply to tags:</p> <ul> <li>
* <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For each
* resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services
* and resources, remember that other services may have restrictions on allowed
* characters. Generally allowed characters are: letters, numbers, and spaces
* representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of
* such as a prefix for keys as it is reserved for AWS use. You cannot edit or
* delete tag keys with this prefix. Values can have this prefix. If a tag value
* has <code>aws</code> as its prefix but the key does not, then Forecast considers
* it to be a user tag and will count against the limit of 50 tags. Tags with only
* the key prefix of <code>aws</code> do not count against your tags per resource
* limit.</p> </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/Tag">AWS API
* Reference</a></p>
*/
class AWS_FORECASTSERVICE_API Tag
{
public:
Tag();
Tag(Aws::Utils::Json::JsonView jsonValue);
Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>One part of a key-value pair that makes up a tag. A <code>key</code> is a
* general label that acts like a category for more specific tag values.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>One part of a key-value pair that makes up a tag. A <code>key</code> is a
* general label that acts like a category for more specific tag values.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>One part of a key-value pair that makes up a tag. A <code>key</code> is a
* general label that acts like a category for more specific tag values.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>One part of a key-value pair that makes up a tag. A <code>key</code> is a
* general label that acts like a category for more specific tag values.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>One part of a key-value pair that makes up a tag. A <code>key</code> is a
* general label that acts like a category for more specific tag values.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>One part of a key-value pair that makes up a tag. A <code>key</code> is a
* general label that acts like a category for more specific tag values.</p>
*/
inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>One part of a key-value pair that makes up a tag. A <code>key</code> is a
* general label that acts like a category for more specific tag values.</p>
*/
inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>One part of a key-value pair that makes up a tag. A <code>key</code> is a
* general label that acts like a category for more specific tag values.</p>
*/
inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>The optional part of a key-value pair that makes up a tag. A
* <code>value</code> acts as a descriptor within a tag category (key).</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The optional part of a key-value pair that makes up a tag. A
* <code>value</code> acts as a descriptor within a tag category (key).</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The optional part of a key-value pair that makes up a tag. A
* <code>value</code> acts as a descriptor within a tag category (key).</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The optional part of a key-value pair that makes up a tag. A
* <code>value</code> acts as a descriptor within a tag category (key).</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The optional part of a key-value pair that makes up a tag. A
* <code>value</code> acts as a descriptor within a tag category (key).</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The optional part of a key-value pair that makes up a tag. A
* <code>value</code> acts as a descriptor within a tag category (key).</p>
*/
inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The optional part of a key-value pair that makes up a tag. A
* <code>value</code> acts as a descriptor within a tag category (key).</p>
*/
inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The optional part of a key-value pair that makes up a tag. A
* <code>value</code> acts as a descriptor within a tag category (key).</p>
*/
inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,291 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/forecast/model/Tag.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API TagResourceRequest : public ForecastServiceRequest
{
public:
TagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast export
* jobs.</p>
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The tags to add to the resource. A tag is an array of key-value pairs.</p>
* <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum
* number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag
* key must be unique, and each tag key can have only one value.</p> </li> <li>
* <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li>
* <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If
* your tagging schema is used across multiple services and resources, remember
* that other services may have restrictions on allowed characters. Generally
* allowed characters are: letters, numbers, and spaces representable in UTF-8, and
* the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values
* are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>,
* <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for
* keys as it is reserved for AWS use. You cannot edit or delete tag keys with this
* prefix. Values can have this prefix. If a tag value has <code>aws</code> as its
* prefix but the key does not, then Forecast considers it to be a user tag and
* will count against the limit of 50 tags. Tags with only the key prefix of
* <code>aws</code> do not count against your tags per resource limit.</p> </li>
* </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags to add to the resource. A tag is an array of key-value pairs.</p>
* <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum
* number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag
* key must be unique, and each tag key can have only one value.</p> </li> <li>
* <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li>
* <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If
* your tagging schema is used across multiple services and resources, remember
* that other services may have restrictions on allowed characters. Generally
* allowed characters are: letters, numbers, and spaces representable in UTF-8, and
* the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values
* are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>,
* <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for
* keys as it is reserved for AWS use. You cannot edit or delete tag keys with this
* prefix. Values can have this prefix. If a tag value has <code>aws</code> as its
* prefix but the key does not, then Forecast considers it to be a user tag and
* will count against the limit of 50 tags. Tags with only the key prefix of
* <code>aws</code> do not count against your tags per resource limit.</p> </li>
* </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to add to the resource. A tag is an array of key-value pairs.</p>
* <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum
* number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag
* key must be unique, and each tag key can have only one value.</p> </li> <li>
* <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li>
* <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If
* your tagging schema is used across multiple services and resources, remember
* that other services may have restrictions on allowed characters. Generally
* allowed characters are: letters, numbers, and spaces representable in UTF-8, and
* the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values
* are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>,
* <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for
* keys as it is reserved for AWS use. You cannot edit or delete tag keys with this
* prefix. Values can have this prefix. If a tag value has <code>aws</code> as its
* prefix but the key does not, then Forecast considers it to be a user tag and
* will count against the limit of 50 tags. Tags with only the key prefix of
* <code>aws</code> do not count against your tags per resource limit.</p> </li>
* </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to add to the resource. A tag is an array of key-value pairs.</p>
* <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum
* number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag
* key must be unique, and each tag key can have only one value.</p> </li> <li>
* <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li>
* <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If
* your tagging schema is used across multiple services and resources, remember
* that other services may have restrictions on allowed characters. Generally
* allowed characters are: letters, numbers, and spaces representable in UTF-8, and
* the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values
* are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>,
* <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for
* keys as it is reserved for AWS use. You cannot edit or delete tag keys with this
* prefix. Values can have this prefix. If a tag value has <code>aws</code> as its
* prefix but the key does not, then Forecast considers it to be a user tag and
* will count against the limit of 50 tags. Tags with only the key prefix of
* <code>aws</code> do not count against your tags per resource limit.</p> </li>
* </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to add to the resource. A tag is an array of key-value pairs.</p>
* <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum
* number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag
* key must be unique, and each tag key can have only one value.</p> </li> <li>
* <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li>
* <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If
* your tagging schema is used across multiple services and resources, remember
* that other services may have restrictions on allowed characters. Generally
* allowed characters are: letters, numbers, and spaces representable in UTF-8, and
* the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values
* are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>,
* <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for
* keys as it is reserved for AWS use. You cannot edit or delete tag keys with this
* prefix. Values can have this prefix. If a tag value has <code>aws</code> as its
* prefix but the key does not, then Forecast considers it to be a user tag and
* will count against the limit of 50 tags. Tags with only the key prefix of
* <code>aws</code> do not count against your tags per resource limit.</p> </li>
* </ul>
*/
inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags to add to the resource. A tag is an array of key-value pairs.</p>
* <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum
* number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag
* key must be unique, and each tag key can have only one value.</p> </li> <li>
* <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li>
* <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If
* your tagging schema is used across multiple services and resources, remember
* that other services may have restrictions on allowed characters. Generally
* allowed characters are: letters, numbers, and spaces representable in UTF-8, and
* the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values
* are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>,
* <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for
* keys as it is reserved for AWS use. You cannot edit or delete tag keys with this
* prefix. Values can have this prefix. If a tag value has <code>aws</code> as its
* prefix but the key does not, then Forecast considers it to be a user tag and
* will count against the limit of 50 tags. Tags with only the key prefix of
* <code>aws</code> do not count against your tags per resource limit.</p> </li>
* </ul>
*/
inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to add to the resource. A tag is an array of key-value pairs.</p>
* <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum
* number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag
* key must be unique, and each tag key can have only one value.</p> </li> <li>
* <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li>
* <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If
* your tagging schema is used across multiple services and resources, remember
* that other services may have restrictions on allowed characters. Generally
* allowed characters are: letters, numbers, and spaces representable in UTF-8, and
* the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values
* are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>,
* <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for
* keys as it is reserved for AWS use. You cannot edit or delete tag keys with this
* prefix. Values can have this prefix. If a tag value has <code>aws</code> as its
* prefix but the key does not, then Forecast considers it to be a user tag and
* will count against the limit of 50 tags. Tags with only the key prefix of
* <code>aws</code> do not count against your tags per resource limit.</p> </li>
* </ul>
*/
inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags to add to the resource. A tag is an array of key-value pairs.</p>
* <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum
* number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag
* key must be unique, and each tag key can have only one value.</p> </li> <li>
* <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li>
* <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If
* your tagging schema is used across multiple services and resources, remember
* that other services may have restrictions on allowed characters. Generally
* allowed characters are: letters, numbers, and spaces representable in UTF-8, and
* the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values
* are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>,
* <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for
* keys as it is reserved for AWS use. You cannot edit or delete tag keys with this
* prefix. Values can have this prefix. If a tag value has <code>aws</code> as its
* prefix but the key does not, then Forecast considers it to be a user tag and
* will count against the limit of 50 tags. Tags with only the key prefix of
* <code>aws</code> do not count against your tags per resource limit.</p> </li>
* </ul>
*/
inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API TagResourceResult
{
public:
TagResourceResult();
TagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
TagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,218 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The status, start time, and end time of a backtest, as well as a failure
* reason if applicable.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/TestWindowSummary">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API TestWindowSummary
{
public:
TestWindowSummary();
TestWindowSummary(Aws::Utils::Json::JsonView jsonValue);
TestWindowSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The time at which the test began.</p>
*/
inline const Aws::Utils::DateTime& GetTestWindowStart() const{ return m_testWindowStart; }
/**
* <p>The time at which the test began.</p>
*/
inline bool TestWindowStartHasBeenSet() const { return m_testWindowStartHasBeenSet; }
/**
* <p>The time at which the test began.</p>
*/
inline void SetTestWindowStart(const Aws::Utils::DateTime& value) { m_testWindowStartHasBeenSet = true; m_testWindowStart = value; }
/**
* <p>The time at which the test began.</p>
*/
inline void SetTestWindowStart(Aws::Utils::DateTime&& value) { m_testWindowStartHasBeenSet = true; m_testWindowStart = std::move(value); }
/**
* <p>The time at which the test began.</p>
*/
inline TestWindowSummary& WithTestWindowStart(const Aws::Utils::DateTime& value) { SetTestWindowStart(value); return *this;}
/**
* <p>The time at which the test began.</p>
*/
inline TestWindowSummary& WithTestWindowStart(Aws::Utils::DateTime&& value) { SetTestWindowStart(std::move(value)); return *this;}
/**
* <p>The time at which the test ended.</p>
*/
inline const Aws::Utils::DateTime& GetTestWindowEnd() const{ return m_testWindowEnd; }
/**
* <p>The time at which the test ended.</p>
*/
inline bool TestWindowEndHasBeenSet() const { return m_testWindowEndHasBeenSet; }
/**
* <p>The time at which the test ended.</p>
*/
inline void SetTestWindowEnd(const Aws::Utils::DateTime& value) { m_testWindowEndHasBeenSet = true; m_testWindowEnd = value; }
/**
* <p>The time at which the test ended.</p>
*/
inline void SetTestWindowEnd(Aws::Utils::DateTime&& value) { m_testWindowEndHasBeenSet = true; m_testWindowEnd = std::move(value); }
/**
* <p>The time at which the test ended.</p>
*/
inline TestWindowSummary& WithTestWindowEnd(const Aws::Utils::DateTime& value) { SetTestWindowEnd(value); return *this;}
/**
* <p>The time at which the test ended.</p>
*/
inline TestWindowSummary& WithTestWindowEnd(Aws::Utils::DateTime&& value) { SetTestWindowEnd(std::move(value)); return *this;}
/**
* <p>The status of the test. Possible status values are:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_IN_PROGRESS</code> </p>
* </li> <li> <p> <code>CREATE_FAILED</code> </p> </li> </ul>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the test. Possible status values are:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_IN_PROGRESS</code> </p>
* </li> <li> <p> <code>CREATE_FAILED</code> </p> </li> </ul>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the test. Possible status values are:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_IN_PROGRESS</code> </p>
* </li> <li> <p> <code>CREATE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the test. Possible status values are:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_IN_PROGRESS</code> </p>
* </li> <li> <p> <code>CREATE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the test. Possible status values are:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_IN_PROGRESS</code> </p>
* </li> <li> <p> <code>CREATE_FAILED</code> </p> </li> </ul>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The status of the test. Possible status values are:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_IN_PROGRESS</code> </p>
* </li> <li> <p> <code>CREATE_FAILED</code> </p> </li> </ul>
*/
inline TestWindowSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the test. Possible status values are:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_IN_PROGRESS</code> </p>
* </li> <li> <p> <code>CREATE_FAILED</code> </p> </li> </ul>
*/
inline TestWindowSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the test. Possible status values are:</p> <ul> <li> <p>
* <code>ACTIVE</code> </p> </li> <li> <p> <code>CREATE_IN_PROGRESS</code> </p>
* </li> <li> <p> <code>CREATE_FAILED</code> </p> </li> </ul>
*/
inline TestWindowSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>If the test failed, the reason why it failed.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If the test failed, the reason why it failed.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>If the test failed, the reason why it failed.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>If the test failed, the reason why it failed.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>If the test failed, the reason why it failed.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>If the test failed, the reason why it failed.</p>
*/
inline TestWindowSummary& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If the test failed, the reason why it failed.</p>
*/
inline TestWindowSummary& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If the test failed, the reason why it failed.</p>
*/
inline TestWindowSummary& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::Utils::DateTime m_testWindowStart;
bool m_testWindowStartHasBeenSet;
Aws::Utils::DateTime m_testWindowEnd;
bool m_testWindowEndHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API UntagResourceRequest : public ForecastServiceRequest
{
public:
UntagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast exports.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast exports.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast exports.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast exports.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast exports.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast exports.</p>
*/
inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast exports.</p>
*/
inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
* the tags. Currently, the supported resources are Forecast dataset groups,
* datasets, dataset import jobs, predictors, forecasts, and forecast exports.</p>
*/
inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The keys of the tags to be removed.</p>
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* <p>The keys of the tags to be removed.</p>
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* <p>The keys of the tags to be removed.</p>
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* <p>The keys of the tags to be removed.</p>
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* <p>The keys of the tags to be removed.</p>
*/
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* <p>The keys of the tags to be removed.</p>
*/
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* <p>The keys of the tags to be removed.</p>
*/
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* <p>The keys of the tags to be removed.</p>
*/
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* <p>The keys of the tags to be removed.</p>
*/
inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API UntagResourceResult
{
public:
UntagResourceResult();
UntagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UntagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,144 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/forecast/ForecastServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace ForecastService
{
namespace Model
{
/**
*/
class AWS_FORECASTSERVICE_API UpdateDatasetGroupRequest : public ForecastServiceRequest
{
public:
UpdateDatasetGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateDatasetGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ARN of the dataset group.</p>
*/
inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
/**
* <p>The ARN of the dataset group.</p>
*/
inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
/**
* <p>The ARN of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
/**
* <p>The ARN of the dataset group.</p>
*/
inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
/**
* <p>The ARN of the dataset group.</p>
*/
inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
/**
* <p>The ARN of the dataset group.</p>
*/
inline UpdateDatasetGroupRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>The ARN of the dataset group.</p>
*/
inline UpdateDatasetGroupRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
/**
* <p>The ARN of the dataset group.</p>
*/
inline UpdateDatasetGroupRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline const Aws::Vector<Aws::String>& GetDatasetArns() const{ return m_datasetArns; }
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline bool DatasetArnsHasBeenSet() const { return m_datasetArnsHasBeenSet; }
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline void SetDatasetArns(const Aws::Vector<Aws::String>& value) { m_datasetArnsHasBeenSet = true; m_datasetArns = value; }
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline void SetDatasetArns(Aws::Vector<Aws::String>&& value) { m_datasetArnsHasBeenSet = true; m_datasetArns = std::move(value); }
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline UpdateDatasetGroupRequest& WithDatasetArns(const Aws::Vector<Aws::String>& value) { SetDatasetArns(value); return *this;}
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline UpdateDatasetGroupRequest& WithDatasetArns(Aws::Vector<Aws::String>&& value) { SetDatasetArns(std::move(value)); return *this;}
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline UpdateDatasetGroupRequest& AddDatasetArns(const Aws::String& value) { m_datasetArnsHasBeenSet = true; m_datasetArns.push_back(value); return *this; }
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline UpdateDatasetGroupRequest& AddDatasetArns(Aws::String&& value) { m_datasetArnsHasBeenSet = true; m_datasetArns.push_back(std::move(value)); return *this; }
/**
* <p>An array of the Amazon Resource Names (ARNs) of the datasets to add to the
* dataset group.</p>
*/
inline UpdateDatasetGroupRequest& AddDatasetArns(const char* value) { m_datasetArnsHasBeenSet = true; m_datasetArns.push_back(value); return *this; }
private:
Aws::String m_datasetGroupArn;
bool m_datasetGroupArnHasBeenSet;
Aws::Vector<Aws::String> m_datasetArns;
bool m_datasetArnsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
class AWS_FORECASTSERVICE_API UpdateDatasetGroupResult
{
public:
UpdateDatasetGroupResult();
UpdateDatasetGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateDatasetGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The weighted loss value for a quantile. This object is part of the
* <a>Metrics</a> object.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/WeightedQuantileLoss">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API WeightedQuantileLoss
{
public:
WeightedQuantileLoss();
WeightedQuantileLoss(Aws::Utils::Json::JsonView jsonValue);
WeightedQuantileLoss& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The quantile. Quantiles divide a probability distribution into regions of
* equal probability. For example, if the distribution was divided into 5 regions
* of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8.</p>
*/
inline double GetQuantile() const{ return m_quantile; }
/**
* <p>The quantile. Quantiles divide a probability distribution into regions of
* equal probability. For example, if the distribution was divided into 5 regions
* of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8.</p>
*/
inline bool QuantileHasBeenSet() const { return m_quantileHasBeenSet; }
/**
* <p>The quantile. Quantiles divide a probability distribution into regions of
* equal probability. For example, if the distribution was divided into 5 regions
* of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8.</p>
*/
inline void SetQuantile(double value) { m_quantileHasBeenSet = true; m_quantile = value; }
/**
* <p>The quantile. Quantiles divide a probability distribution into regions of
* equal probability. For example, if the distribution was divided into 5 regions
* of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8.</p>
*/
inline WeightedQuantileLoss& WithQuantile(double value) { SetQuantile(value); return *this;}
/**
* <p>The difference between the predicted value and the actual value over the
* quantile, weighted (normalized) by dividing by the sum over all quantiles.</p>
*/
inline double GetLossValue() const{ return m_lossValue; }
/**
* <p>The difference between the predicted value and the actual value over the
* quantile, weighted (normalized) by dividing by the sum over all quantiles.</p>
*/
inline bool LossValueHasBeenSet() const { return m_lossValueHasBeenSet; }
/**
* <p>The difference between the predicted value and the actual value over the
* quantile, weighted (normalized) by dividing by the sum over all quantiles.</p>
*/
inline void SetLossValue(double value) { m_lossValueHasBeenSet = true; m_lossValue = value; }
/**
* <p>The difference between the predicted value and the actual value over the
* quantile, weighted (normalized) by dividing by the sum over all quantiles.</p>
*/
inline WeightedQuantileLoss& WithLossValue(double value) { SetLossValue(value); return *this;}
private:
double m_quantile;
bool m_quantileHasBeenSet;
double m_lossValue;
bool m_lossValueHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws

View File

@@ -0,0 +1,222 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/forecast/ForecastService_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/forecast/model/EvaluationType.h>
#include <aws/forecast/model/Metrics.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ForecastService
{
namespace Model
{
/**
* <p>The metrics for a time range within the evaluation portion of a dataset. This
* object is part of the <a>EvaluationResult</a> object.</p> <p>The
* <code>TestWindowStart</code> and <code>TestWindowEnd</code> parameters are
* determined by the <code>BackTestWindowOffset</code> parameter of the
* <a>EvaluationParameters</a> object.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/WindowSummary">AWS
* API Reference</a></p>
*/
class AWS_FORECASTSERVICE_API WindowSummary
{
public:
WindowSummary();
WindowSummary(Aws::Utils::Json::JsonView jsonValue);
WindowSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The timestamp that defines the start of the window.</p>
*/
inline const Aws::Utils::DateTime& GetTestWindowStart() const{ return m_testWindowStart; }
/**
* <p>The timestamp that defines the start of the window.</p>
*/
inline bool TestWindowStartHasBeenSet() const { return m_testWindowStartHasBeenSet; }
/**
* <p>The timestamp that defines the start of the window.</p>
*/
inline void SetTestWindowStart(const Aws::Utils::DateTime& value) { m_testWindowStartHasBeenSet = true; m_testWindowStart = value; }
/**
* <p>The timestamp that defines the start of the window.</p>
*/
inline void SetTestWindowStart(Aws::Utils::DateTime&& value) { m_testWindowStartHasBeenSet = true; m_testWindowStart = std::move(value); }
/**
* <p>The timestamp that defines the start of the window.</p>
*/
inline WindowSummary& WithTestWindowStart(const Aws::Utils::DateTime& value) { SetTestWindowStart(value); return *this;}
/**
* <p>The timestamp that defines the start of the window.</p>
*/
inline WindowSummary& WithTestWindowStart(Aws::Utils::DateTime&& value) { SetTestWindowStart(std::move(value)); return *this;}
/**
* <p>The timestamp that defines the end of the window.</p>
*/
inline const Aws::Utils::DateTime& GetTestWindowEnd() const{ return m_testWindowEnd; }
/**
* <p>The timestamp that defines the end of the window.</p>
*/
inline bool TestWindowEndHasBeenSet() const { return m_testWindowEndHasBeenSet; }
/**
* <p>The timestamp that defines the end of the window.</p>
*/
inline void SetTestWindowEnd(const Aws::Utils::DateTime& value) { m_testWindowEndHasBeenSet = true; m_testWindowEnd = value; }
/**
* <p>The timestamp that defines the end of the window.</p>
*/
inline void SetTestWindowEnd(Aws::Utils::DateTime&& value) { m_testWindowEndHasBeenSet = true; m_testWindowEnd = std::move(value); }
/**
* <p>The timestamp that defines the end of the window.</p>
*/
inline WindowSummary& WithTestWindowEnd(const Aws::Utils::DateTime& value) { SetTestWindowEnd(value); return *this;}
/**
* <p>The timestamp that defines the end of the window.</p>
*/
inline WindowSummary& WithTestWindowEnd(Aws::Utils::DateTime&& value) { SetTestWindowEnd(std::move(value)); return *this;}
/**
* <p>The number of data points within the window.</p>
*/
inline int GetItemCount() const{ return m_itemCount; }
/**
* <p>The number of data points within the window.</p>
*/
inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
/**
* <p>The number of data points within the window.</p>
*/
inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
/**
* <p>The number of data points within the window.</p>
*/
inline WindowSummary& WithItemCount(int value) { SetItemCount(value); return *this;}
/**
* <p>The type of evaluation.</p> <ul> <li> <p> <code>SUMMARY</code> - The average
* metrics across all windows.</p> </li> <li> <p> <code>COMPUTED</code> - The
* metrics for the specified window.</p> </li> </ul>
*/
inline const EvaluationType& GetEvaluationType() const{ return m_evaluationType; }
/**
* <p>The type of evaluation.</p> <ul> <li> <p> <code>SUMMARY</code> - The average
* metrics across all windows.</p> </li> <li> <p> <code>COMPUTED</code> - The
* metrics for the specified window.</p> </li> </ul>
*/
inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
/**
* <p>The type of evaluation.</p> <ul> <li> <p> <code>SUMMARY</code> - The average
* metrics across all windows.</p> </li> <li> <p> <code>COMPUTED</code> - The
* metrics for the specified window.</p> </li> </ul>
*/
inline void SetEvaluationType(const EvaluationType& value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = value; }
/**
* <p>The type of evaluation.</p> <ul> <li> <p> <code>SUMMARY</code> - The average
* metrics across all windows.</p> </li> <li> <p> <code>COMPUTED</code> - The
* metrics for the specified window.</p> </li> </ul>
*/
inline void SetEvaluationType(EvaluationType&& value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = std::move(value); }
/**
* <p>The type of evaluation.</p> <ul> <li> <p> <code>SUMMARY</code> - The average
* metrics across all windows.</p> </li> <li> <p> <code>COMPUTED</code> - The
* metrics for the specified window.</p> </li> </ul>
*/
inline WindowSummary& WithEvaluationType(const EvaluationType& value) { SetEvaluationType(value); return *this;}
/**
* <p>The type of evaluation.</p> <ul> <li> <p> <code>SUMMARY</code> - The average
* metrics across all windows.</p> </li> <li> <p> <code>COMPUTED</code> - The
* metrics for the specified window.</p> </li> </ul>
*/
inline WindowSummary& WithEvaluationType(EvaluationType&& value) { SetEvaluationType(std::move(value)); return *this;}
/**
* <p>Provides metrics used to evaluate the performance of a predictor.</p>
*/
inline const Metrics& GetMetrics() const{ return m_metrics; }
/**
* <p>Provides metrics used to evaluate the performance of a predictor.</p>
*/
inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
/**
* <p>Provides metrics used to evaluate the performance of a predictor.</p>
*/
inline void SetMetrics(const Metrics& value) { m_metricsHasBeenSet = true; m_metrics = value; }
/**
* <p>Provides metrics used to evaluate the performance of a predictor.</p>
*/
inline void SetMetrics(Metrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
/**
* <p>Provides metrics used to evaluate the performance of a predictor.</p>
*/
inline WindowSummary& WithMetrics(const Metrics& value) { SetMetrics(value); return *this;}
/**
* <p>Provides metrics used to evaluate the performance of a predictor.</p>
*/
inline WindowSummary& WithMetrics(Metrics&& value) { SetMetrics(std::move(value)); return *this;}
private:
Aws::Utils::DateTime m_testWindowStart;
bool m_testWindowStartHasBeenSet;
Aws::Utils::DateTime m_testWindowEnd;
bool m_testWindowEndHasBeenSet;
int m_itemCount;
bool m_itemCountHasBeenSet;
EvaluationType m_evaluationType;
bool m_evaluationTypeHasBeenSet;
Metrics m_metrics;
bool m_metricsHasBeenSet;
};
} // namespace Model
} // namespace ForecastService
} // namespace Aws