/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.autoscalingplans.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetScalingPlanResourceForecastDataRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the scaling plan. *

*/ private String scalingPlanName; /** *

* The version number of the scaling plan. Currently, the only valid value is 1. *

*/ private Long scalingPlanVersion; /** *

* The namespace of the AWS service. The only valid value is autoscaling. *

*/ private String serviceNamespace; /** *

* The ID of the resource. This string consists of a prefix (autoScalingGroup) followed by the name of * a specified Auto Scaling group (my-asg). Example: autoScalingGroup/my-asg. *

*/ private String resourceId; /** *

* The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. *

*/ private String scalableDimension; /** *

* The type of forecast data to get. *

* */ private String forecastDataType; /** *

* The inclusive start time of the time range for the forecast data to get. The date and time can be at most 56 days * before the current date and time. *

*/ private java.util.Date startTime; /** *

* The exclusive end time of the time range for the forecast data to get. The maximum time duration between the * start and end time is seven days. *

*

* Although this parameter can accept a date and time that is more than two days in the future, the availability of * forecast data has limits. AWS Auto Scaling only issues forecasts for periods of two days in advance. *

*/ private java.util.Date endTime; /** *

* The name of the scaling plan. *

* * @param scalingPlanName * The name of the scaling plan. */ public void setScalingPlanName(String scalingPlanName) { this.scalingPlanName = scalingPlanName; } /** *

* The name of the scaling plan. *

* * @return The name of the scaling plan. */ public String getScalingPlanName() { return this.scalingPlanName; } /** *

* The name of the scaling plan. *

* * @param scalingPlanName * The name of the scaling plan. * @return Returns a reference to this object so that method calls can be chained together. */ public GetScalingPlanResourceForecastDataRequest withScalingPlanName(String scalingPlanName) { setScalingPlanName(scalingPlanName); return this; } /** *

* The version number of the scaling plan. Currently, the only valid value is 1. *

* * @param scalingPlanVersion * The version number of the scaling plan. Currently, the only valid value is 1. */ public void setScalingPlanVersion(Long scalingPlanVersion) { this.scalingPlanVersion = scalingPlanVersion; } /** *

* The version number of the scaling plan. Currently, the only valid value is 1. *

* * @return The version number of the scaling plan. Currently, the only valid value is 1. */ public Long getScalingPlanVersion() { return this.scalingPlanVersion; } /** *

* The version number of the scaling plan. Currently, the only valid value is 1. *

* * @param scalingPlanVersion * The version number of the scaling plan. Currently, the only valid value is 1. * @return Returns a reference to this object so that method calls can be chained together. */ public GetScalingPlanResourceForecastDataRequest withScalingPlanVersion(Long scalingPlanVersion) { setScalingPlanVersion(scalingPlanVersion); return this; } /** *

* The namespace of the AWS service. The only valid value is autoscaling. *

* * @param serviceNamespace * The namespace of the AWS service. The only valid value is autoscaling. * @see ServiceNamespace */ public void setServiceNamespace(String serviceNamespace) { this.serviceNamespace = serviceNamespace; } /** *

* The namespace of the AWS service. The only valid value is autoscaling. *

* * @return The namespace of the AWS service. The only valid value is autoscaling. * @see ServiceNamespace */ public String getServiceNamespace() { return this.serviceNamespace; } /** *

* The namespace of the AWS service. The only valid value is autoscaling. *

* * @param serviceNamespace * The namespace of the AWS service. The only valid value is autoscaling. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceNamespace */ public GetScalingPlanResourceForecastDataRequest withServiceNamespace(String serviceNamespace) { setServiceNamespace(serviceNamespace); return this; } /** *

* The namespace of the AWS service. The only valid value is autoscaling. *

* * @param serviceNamespace * The namespace of the AWS service. The only valid value is autoscaling. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceNamespace */ public GetScalingPlanResourceForecastDataRequest withServiceNamespace(ServiceNamespace serviceNamespace) { this.serviceNamespace = serviceNamespace.toString(); return this; } /** *

* The ID of the resource. This string consists of a prefix (autoScalingGroup) followed by the name of * a specified Auto Scaling group (my-asg). Example: autoScalingGroup/my-asg. *

* * @param resourceId * The ID of the resource. This string consists of a prefix (autoScalingGroup) followed by the * name of a specified Auto Scaling group (my-asg). Example: * autoScalingGroup/my-asg. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** *

* The ID of the resource. This string consists of a prefix (autoScalingGroup) followed by the name of * a specified Auto Scaling group (my-asg). Example: autoScalingGroup/my-asg. *

* * @return The ID of the resource. This string consists of a prefix (autoScalingGroup) followed by the * name of a specified Auto Scaling group (my-asg). Example: * autoScalingGroup/my-asg. */ public String getResourceId() { return this.resourceId; } /** *

* The ID of the resource. This string consists of a prefix (autoScalingGroup) followed by the name of * a specified Auto Scaling group (my-asg). Example: autoScalingGroup/my-asg. *

* * @param resourceId * The ID of the resource. This string consists of a prefix (autoScalingGroup) followed by the * name of a specified Auto Scaling group (my-asg). Example: * autoScalingGroup/my-asg. * @return Returns a reference to this object so that method calls can be chained together. */ public GetScalingPlanResourceForecastDataRequest withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** *

* The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. *

* * @param scalableDimension * The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. * @see ScalableDimension */ public void setScalableDimension(String scalableDimension) { this.scalableDimension = scalableDimension; } /** *

* The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. *

* * @return The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. * @see ScalableDimension */ public String getScalableDimension() { return this.scalableDimension; } /** *

* The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. *

* * @param scalableDimension * The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. * @return Returns a reference to this object so that method calls can be chained together. * @see ScalableDimension */ public GetScalingPlanResourceForecastDataRequest withScalableDimension(String scalableDimension) { setScalableDimension(scalableDimension); return this; } /** *

* The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. *

* * @param scalableDimension * The scalable dimension for the resource. The only valid value is * autoscaling:autoScalingGroup:DesiredCapacity. * @return Returns a reference to this object so that method calls can be chained together. * @see ScalableDimension */ public GetScalingPlanResourceForecastDataRequest withScalableDimension(ScalableDimension scalableDimension) { this.scalableDimension = scalableDimension.toString(); return this; } /** *

* The type of forecast data to get. *

* * * @param forecastDataType * The type of forecast data to get.

*