/* * 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.elasticinference.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 DescribeAcceleratorOfferingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The location type that you want to describe accelerator type offerings for. It can assume the following values: * region: will return the accelerator type offering at the regional level. availability-zone: will return the * accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type * offering at the availability zone level returning the availability zone id. *
*/ private String locationType; /** ** The list of accelerator types to describe. *
*/ private java.util.List* The location type that you want to describe accelerator type offerings for. It can assume the following values: * region: will return the accelerator type offering at the regional level. availability-zone: will return the * accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type * offering at the availability zone level returning the availability zone id. *
* * @param locationType * The location type that you want to describe accelerator type offerings for. It can assume the following * values: region: will return the accelerator type offering at the regional level. availability-zone: will * return the accelerator type offering at the availability zone level. availability-zone-id: will return the * accelerator type offering at the availability zone level returning the availability zone id. * @see LocationType */ public void setLocationType(String locationType) { this.locationType = locationType; } /** ** The location type that you want to describe accelerator type offerings for. It can assume the following values: * region: will return the accelerator type offering at the regional level. availability-zone: will return the * accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type * offering at the availability zone level returning the availability zone id. *
* * @return The location type that you want to describe accelerator type offerings for. It can assume the following * values: region: will return the accelerator type offering at the regional level. availability-zone: will * return the accelerator type offering at the availability zone level. availability-zone-id: will return * the accelerator type offering at the availability zone level returning the availability zone id. * @see LocationType */ public String getLocationType() { return this.locationType; } /** ** The location type that you want to describe accelerator type offerings for. It can assume the following values: * region: will return the accelerator type offering at the regional level. availability-zone: will return the * accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type * offering at the availability zone level returning the availability zone id. *
* * @param locationType * The location type that you want to describe accelerator type offerings for. It can assume the following * values: region: will return the accelerator type offering at the regional level. availability-zone: will * return the accelerator type offering at the availability zone level. availability-zone-id: will return the * accelerator type offering at the availability zone level returning the availability zone id. * @return Returns a reference to this object so that method calls can be chained together. * @see LocationType */ public DescribeAcceleratorOfferingsRequest withLocationType(String locationType) { setLocationType(locationType); return this; } /** ** The location type that you want to describe accelerator type offerings for. It can assume the following values: * region: will return the accelerator type offering at the regional level. availability-zone: will return the * accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type * offering at the availability zone level returning the availability zone id. *
* * @param locationType * The location type that you want to describe accelerator type offerings for. It can assume the following * values: region: will return the accelerator type offering at the regional level. availability-zone: will * return the accelerator type offering at the availability zone level. availability-zone-id: will return the * accelerator type offering at the availability zone level returning the availability zone id. * @return Returns a reference to this object so that method calls can be chained together. * @see LocationType */ public DescribeAcceleratorOfferingsRequest withLocationType(LocationType locationType) { this.locationType = locationType.toString(); return this; } /** ** The list of accelerator types to describe. *
* * @return The list of accelerator types to describe. */ public java.util.List* The list of accelerator types to describe. *
* * @param acceleratorTypes * The list of accelerator types to describe. */ public void setAcceleratorTypes(java.util.Collection* The list of accelerator types to describe. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAcceleratorTypes(java.util.Collection)} or {@link #withAcceleratorTypes(java.util.Collection)} if you * want to override the existing values. *
* * @param acceleratorTypes * The list of accelerator types to describe. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAcceleratorOfferingsRequest withAcceleratorTypes(String... acceleratorTypes) { if (this.acceleratorTypes == null) { setAcceleratorTypes(new java.util.ArrayList* The list of accelerator types to describe. *
* * @param acceleratorTypes * The list of accelerator types to describe. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAcceleratorOfferingsRequest withAcceleratorTypes(java.util.Collection