/* * 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.applicationautoscaling.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 DescribeScalableTargetsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own * application or service, use custom-resource instead. *

*/ private String serviceNamespace; /** *

* The identifier of the resource associated with the scalable target. This string consists of the resource type and * unique identifier. *

* */ private java.util.List resourceIds; /** *

* The scalable dimension associated with the scalable target. This string consists of the service namespace, * resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. *

* */ private String scalableDimension; /** *

* The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50. *

*

* If this parameter is used, the operation returns up to MaxResults results at a time, along with a * NextToken value. To get the next set of results, include the NextToken value in a * subsequent call. If this parameter is not used, the operation returns up to 50 results and a * NextToken value, if applicable. *

*/ private Integer maxResults; /** *

* The token for the next set of results. *

*/ private String nextToken; /** *

* The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own * application or service, use custom-resource instead. *

* * @param serviceNamespace * The namespace of the Amazon Web Services service that provides the resource. For a resource provided by * your own application or service, use custom-resource instead. * @see ServiceNamespace */ public void setServiceNamespace(String serviceNamespace) { this.serviceNamespace = serviceNamespace; } /** *

* The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own * application or service, use custom-resource instead. *

* * @return The namespace of the Amazon Web Services service that provides the resource. For a resource provided by * your own application or service, use custom-resource instead. * @see ServiceNamespace */ public String getServiceNamespace() { return this.serviceNamespace; } /** *

* The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own * application or service, use custom-resource instead. *

* * @param serviceNamespace * The namespace of the Amazon Web Services service that provides the resource. For a resource provided by * your own application or service, use custom-resource instead. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceNamespace */ public DescribeScalableTargetsRequest withServiceNamespace(String serviceNamespace) { setServiceNamespace(serviceNamespace); return this; } /** *

* The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own * application or service, use custom-resource instead. *

* * @param serviceNamespace * The namespace of the Amazon Web Services service that provides the resource. For a resource provided by * your own application or service, use custom-resource instead. * @see ServiceNamespace */ public void setServiceNamespace(ServiceNamespace serviceNamespace) { withServiceNamespace(serviceNamespace); } /** *

* The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own * application or service, use custom-resource instead. *

* * @param serviceNamespace * The namespace of the Amazon Web Services service that provides the resource. For a resource provided by * your own application or service, use custom-resource instead. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceNamespace */ public DescribeScalableTargetsRequest withServiceNamespace(ServiceNamespace serviceNamespace) { this.serviceNamespace = serviceNamespace.toString(); return this; } /** *

* The identifier of the resource associated with the scalable target. This string consists of the resource type and * unique identifier. *

* * * @return The identifier of the resource associated with the scalable target. This string consists of the resource * type and unique identifier.

*