/*
* 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.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.ModifyHostsRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ModifyHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest
* Specify whether to enable or disable auto-placement.
*
* The IDs of the Dedicated Hosts to modify.
*
* Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in
* the Amazon EC2 User Guide.
*
* Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated
* Host to support only a specific instance type.
*
* If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit
* this parameter and specify InstanceFamily instead. You cannot specify InstanceType and
* InstanceFamily in the same request.
*
* Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated
* Host to support multiple instance types within its current instance family.
*
* If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify
* InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same
* request.
*
* Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance
* in the Amazon EC2 User Guide.
*
* Specify whether to enable or disable auto-placement.
*
* Specify whether to enable or disable auto-placement.
*
* Specify whether to enable or disable auto-placement.
*
* Specify whether to enable or disable auto-placement.
*
* Specify whether to enable or disable auto-placement.
*
* The IDs of the Dedicated Hosts to modify.
*
* The IDs of the Dedicated Hosts to modify.
*
* The IDs of the Dedicated Hosts to modify.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setHostIds(java.util.Collection)} or {@link #withHostIds(java.util.Collection)} if you want to override
* the existing values.
*
* The IDs of the Dedicated Hosts to modify.
*
* Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in
* the Amazon EC2 User Guide.
*
* Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in
* the Amazon EC2 User Guide.
*
* Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in
* the Amazon EC2 User Guide.
*
* Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in
* the Amazon EC2 User Guide.
*
* Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in
* the Amazon EC2 User Guide.
*
* Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated
* Host to support only a specific instance type.
*
* If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit
* this parameter and specify InstanceFamily instead. You cannot specify InstanceType and
* InstanceFamily in the same request.
*
* If you want to modify a Dedicated Host to support multiple instance types in its current instance family, * omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and * InstanceFamily in the same request. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *
* Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated * Host to support only a specific instance type. *
** If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit * this parameter and specify InstanceFamily instead. You cannot specify InstanceType and * InstanceFamily in the same request. *
* * @return Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a * Dedicated Host to support only a specific instance type. ** If you want to modify a Dedicated Host to support multiple instance types in its current instance family, * omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and * InstanceFamily in the same request. */ public String getInstanceType() { return this.instanceType; } /** *
* Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated * Host to support only a specific instance type. *
** If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit * this parameter and specify InstanceFamily instead. You cannot specify InstanceType and * InstanceFamily in the same request. *
* * @param instanceType * Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a * Dedicated Host to support only a specific instance type. ** If you want to modify a Dedicated Host to support multiple instance types in its current instance family, * omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and * InstanceFamily in the same request. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyHostsRequest withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *
* Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated * Host to support multiple instance types within its current instance family. *
** If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify * InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same * request. *
* * @param instanceFamily * Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a * Dedicated Host to support multiple instance types within its current instance family. ** If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and * specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in * the same request. */ public void setInstanceFamily(String instanceFamily) { this.instanceFamily = instanceFamily; } /** *
* Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated * Host to support multiple instance types within its current instance family. *
** If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify * InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same * request. *
* * @return Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a * Dedicated Host to support multiple instance types within its current instance family. ** If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and * specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in * the same request. */ public String getInstanceFamily() { return this.instanceFamily; } /** *
* Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated * Host to support multiple instance types within its current instance family. *
** If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify * InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same * request. *
* * @param instanceFamily * Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a * Dedicated Host to support multiple instance types within its current instance family. ** If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and * specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in * the same request. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyHostsRequest withInstanceFamily(String instanceFamily) { setInstanceFamily(instanceFamily); return this; } /** *
* Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance * in the Amazon EC2 User Guide. *
* * @param hostMaintenance * Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see * Host * maintenance in the Amazon EC2 User Guide. * @see HostMaintenance */ public void setHostMaintenance(String hostMaintenance) { this.hostMaintenance = hostMaintenance; } /** ** Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance * in the Amazon EC2 User Guide. *
* * @return Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see * Host * maintenance in the Amazon EC2 User Guide. * @see HostMaintenance */ public String getHostMaintenance() { return this.hostMaintenance; } /** ** Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance * in the Amazon EC2 User Guide. *
* * @param hostMaintenance * Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see * Host * maintenance in the Amazon EC2 User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see HostMaintenance */ public ModifyHostsRequest withHostMaintenance(String hostMaintenance) { setHostMaintenance(hostMaintenance); return this; } /** ** Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance * in the Amazon EC2 User Guide. *
* * @param hostMaintenance * Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see * Host * maintenance in the Amazon EC2 User Guide. * @see HostMaintenance */ public void setHostMaintenance(HostMaintenance hostMaintenance) { withHostMaintenance(hostMaintenance); } /** ** Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance * in the Amazon EC2 User Guide. *
* * @param hostMaintenance * Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see * Host * maintenance in the Amazon EC2 User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see HostMaintenance */ public ModifyHostsRequest withHostMaintenance(HostMaintenance hostMaintenance) { this.hostMaintenance = hostMaintenance.toString(); return this; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request