/* * 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; /** *
* The targets to disassociate from the specified event window. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InstanceEventWindowDisassociationRequest implements Serializable, Cloneable { /** ** The IDs of the instances to disassociate from the event window. *
*/ private com.amazonaws.internal.SdkInternalList* The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. *
*/ private com.amazonaws.internal.SdkInternalList* The IDs of the Dedicated Hosts to disassociate from the event window. *
*/ private com.amazonaws.internal.SdkInternalList* The IDs of the instances to disassociate from the event window. *
* * @return The IDs of the instances to disassociate from the event window. */ public java.util.List* The IDs of the instances to disassociate from the event window. *
* * @param instanceIds * The IDs of the instances to disassociate from the event window. */ public void setInstanceIds(java.util.Collection* The IDs of the instances to disassociate from the event window. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstanceIds(java.util.Collection)} or {@link #withInstanceIds(java.util.Collection)} if you want to * override the existing values. *
* * @param instanceIds * The IDs of the instances to disassociate from the event window. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceEventWindowDisassociationRequest withInstanceIds(String... instanceIds) { if (this.instanceIds == null) { setInstanceIds(new com.amazonaws.internal.SdkInternalList* The IDs of the instances to disassociate from the event window. *
* * @param instanceIds * The IDs of the instances to disassociate from the event window. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceEventWindowDisassociationRequest withInstanceIds(java.util.Collection* The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. *
* * @return The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. */ public java.util.List* The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. *
* * @param instanceTags * The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. */ public void setInstanceTags(java.util.Collection* The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstanceTags(java.util.Collection)} or {@link #withInstanceTags(java.util.Collection)} if you want to * override the existing values. *
* * @param instanceTags * The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceEventWindowDisassociationRequest withInstanceTags(Tag... instanceTags) { if (this.instanceTags == null) { setInstanceTags(new com.amazonaws.internal.SdkInternalList* The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. *
* * @param instanceTags * The instance tags to disassociate from the event window. Any instances associated with the tags will be * disassociated from the event window. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceEventWindowDisassociationRequest withInstanceTags(java.util.Collection* The IDs of the Dedicated Hosts to disassociate from the event window. *
* * @return The IDs of the Dedicated Hosts to disassociate from the event window. */ public java.util.List* The IDs of the Dedicated Hosts to disassociate from the event window. *
* * @param dedicatedHostIds * The IDs of the Dedicated Hosts to disassociate from the event window. */ public void setDedicatedHostIds(java.util.Collection* The IDs of the Dedicated Hosts to disassociate from the event window. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDedicatedHostIds(java.util.Collection)} or {@link #withDedicatedHostIds(java.util.Collection)} if you * want to override the existing values. *
* * @param dedicatedHostIds * The IDs of the Dedicated Hosts to disassociate from the event window. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceEventWindowDisassociationRequest withDedicatedHostIds(String... dedicatedHostIds) { if (this.dedicatedHostIds == null) { setDedicatedHostIds(new com.amazonaws.internal.SdkInternalList* The IDs of the Dedicated Hosts to disassociate from the event window. *
* * @param dedicatedHostIds * The IDs of the Dedicated Hosts to disassociate from the event window. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceEventWindowDisassociationRequest withDedicatedHostIds(java.util.Collection