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

Time series forecast settings for the SageMaker Canvas * application.

See Also:

AWS * API Reference

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

Describes whether time series forecasting is enabled or disabled in the * Canvas application.

*/ inline const FeatureStatus& GetStatus() const{ return m_status; } /** *

Describes whether time series forecasting is enabled or disabled in the * Canvas application.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Describes whether time series forecasting is enabled or disabled in the * Canvas application.

*/ inline void SetStatus(const FeatureStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Describes whether time series forecasting is enabled or disabled in the * Canvas application.

*/ inline void SetStatus(FeatureStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Describes whether time series forecasting is enabled or disabled in the * Canvas application.

*/ inline TimeSeriesForecastingSettings& WithStatus(const FeatureStatus& value) { SetStatus(value); return *this;} /** *

Describes whether time series forecasting is enabled or disabled in the * Canvas application.

*/ inline TimeSeriesForecastingSettings& WithStatus(FeatureStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The IAM role that Canvas passes to Amazon Forecast for time series * forecasting. By default, Canvas uses the execution role specified in the * UserProfile that launches the Canvas application. If an execution * role is not specified in the UserProfile, Canvas uses the execution * role specified in the Domain that owns the UserProfile. To allow * time series forecasting, this IAM role should have the * AmazonSageMakerCanvasForecastAccess policy attached and * forecast.amazonaws.com added in the trust relationship as a service * principal.

*/ inline const Aws::String& GetAmazonForecastRoleArn() const{ return m_amazonForecastRoleArn; } /** *

The IAM role that Canvas passes to Amazon Forecast for time series * forecasting. By default, Canvas uses the execution role specified in the * UserProfile that launches the Canvas application. If an execution * role is not specified in the UserProfile, Canvas uses the execution * role specified in the Domain that owns the UserProfile. To allow * time series forecasting, this IAM role should have the * AmazonSageMakerCanvasForecastAccess policy attached and * forecast.amazonaws.com added in the trust relationship as a service * principal.

*/ inline bool AmazonForecastRoleArnHasBeenSet() const { return m_amazonForecastRoleArnHasBeenSet; } /** *

The IAM role that Canvas passes to Amazon Forecast for time series * forecasting. By default, Canvas uses the execution role specified in the * UserProfile that launches the Canvas application. If an execution * role is not specified in the UserProfile, Canvas uses the execution * role specified in the Domain that owns the UserProfile. To allow * time series forecasting, this IAM role should have the * AmazonSageMakerCanvasForecastAccess policy attached and * forecast.amazonaws.com added in the trust relationship as a service * principal.

*/ inline void SetAmazonForecastRoleArn(const Aws::String& value) { m_amazonForecastRoleArnHasBeenSet = true; m_amazonForecastRoleArn = value; } /** *

The IAM role that Canvas passes to Amazon Forecast for time series * forecasting. By default, Canvas uses the execution role specified in the * UserProfile that launches the Canvas application. If an execution * role is not specified in the UserProfile, Canvas uses the execution * role specified in the Domain that owns the UserProfile. To allow * time series forecasting, this IAM role should have the * AmazonSageMakerCanvasForecastAccess policy attached and * forecast.amazonaws.com added in the trust relationship as a service * principal.

*/ inline void SetAmazonForecastRoleArn(Aws::String&& value) { m_amazonForecastRoleArnHasBeenSet = true; m_amazonForecastRoleArn = std::move(value); } /** *

The IAM role that Canvas passes to Amazon Forecast for time series * forecasting. By default, Canvas uses the execution role specified in the * UserProfile that launches the Canvas application. If an execution * role is not specified in the UserProfile, Canvas uses the execution * role specified in the Domain that owns the UserProfile. To allow * time series forecasting, this IAM role should have the * AmazonSageMakerCanvasForecastAccess policy attached and * forecast.amazonaws.com added in the trust relationship as a service * principal.

*/ inline void SetAmazonForecastRoleArn(const char* value) { m_amazonForecastRoleArnHasBeenSet = true; m_amazonForecastRoleArn.assign(value); } /** *

The IAM role that Canvas passes to Amazon Forecast for time series * forecasting. By default, Canvas uses the execution role specified in the * UserProfile that launches the Canvas application. If an execution * role is not specified in the UserProfile, Canvas uses the execution * role specified in the Domain that owns the UserProfile. To allow * time series forecasting, this IAM role should have the * AmazonSageMakerCanvasForecastAccess policy attached and * forecast.amazonaws.com added in the trust relationship as a service * principal.

*/ inline TimeSeriesForecastingSettings& WithAmazonForecastRoleArn(const Aws::String& value) { SetAmazonForecastRoleArn(value); return *this;} /** *

The IAM role that Canvas passes to Amazon Forecast for time series * forecasting. By default, Canvas uses the execution role specified in the * UserProfile that launches the Canvas application. If an execution * role is not specified in the UserProfile, Canvas uses the execution * role specified in the Domain that owns the UserProfile. To allow * time series forecasting, this IAM role should have the * AmazonSageMakerCanvasForecastAccess policy attached and * forecast.amazonaws.com added in the trust relationship as a service * principal.

*/ inline TimeSeriesForecastingSettings& WithAmazonForecastRoleArn(Aws::String&& value) { SetAmazonForecastRoleArn(std::move(value)); return *this;} /** *

The IAM role that Canvas passes to Amazon Forecast for time series * forecasting. By default, Canvas uses the execution role specified in the * UserProfile that launches the Canvas application. If an execution * role is not specified in the UserProfile, Canvas uses the execution * role specified in the Domain that owns the UserProfile. To allow * time series forecasting, this IAM role should have the * AmazonSageMakerCanvasForecastAccess policy attached and * forecast.amazonaws.com added in the trust relationship as a service * principal.

*/ inline TimeSeriesForecastingSettings& WithAmazonForecastRoleArn(const char* value) { SetAmazonForecastRoleArn(value); return *this;} private: FeatureStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_amazonForecastRoleArn; bool m_amazonForecastRoleArnHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws