/* * 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 set of DHCP options. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DhcpOptions implements Serializable, Cloneable { /** ** The DHCP options in the set. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the set of DHCP options. *
*/ private String dhcpOptionsId; /** ** The ID of the Amazon Web Services account that owns the DHCP options set. *
*/ private String ownerId; /** ** Any tags assigned to the DHCP options set. *
*/ private com.amazonaws.internal.SdkInternalList* The DHCP options in the set. *
* * @return The DHCP options in the set. */ public java.util.List* The DHCP options in the set. *
* * @param dhcpConfigurations * The DHCP options in the set. */ public void setDhcpConfigurations(java.util.Collection* The DHCP options in the set. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDhcpConfigurations(java.util.Collection)} or {@link #withDhcpConfigurations(java.util.Collection)} if * you want to override the existing values. *
* * @param dhcpConfigurations * The DHCP options in the set. * @return Returns a reference to this object so that method calls can be chained together. */ public DhcpOptions withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations) { if (this.dhcpConfigurations == null) { setDhcpConfigurations(new com.amazonaws.internal.SdkInternalList* The DHCP options in the set. *
* * @param dhcpConfigurations * The DHCP options in the set. * @return Returns a reference to this object so that method calls can be chained together. */ public DhcpOptions withDhcpConfigurations(java.util.Collection* The ID of the set of DHCP options. *
* * @param dhcpOptionsId * The ID of the set of DHCP options. */ public void setDhcpOptionsId(String dhcpOptionsId) { this.dhcpOptionsId = dhcpOptionsId; } /** ** The ID of the set of DHCP options. *
* * @return The ID of the set of DHCP options. */ public String getDhcpOptionsId() { return this.dhcpOptionsId; } /** ** The ID of the set of DHCP options. *
* * @param dhcpOptionsId * The ID of the set of DHCP options. * @return Returns a reference to this object so that method calls can be chained together. */ public DhcpOptions withDhcpOptionsId(String dhcpOptionsId) { setDhcpOptionsId(dhcpOptionsId); return this; } /** ** The ID of the Amazon Web Services account that owns the DHCP options set. *
* * @param ownerId * The ID of the Amazon Web Services account that owns the DHCP options set. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** ** The ID of the Amazon Web Services account that owns the DHCP options set. *
* * @return The ID of the Amazon Web Services account that owns the DHCP options set. */ public String getOwnerId() { return this.ownerId; } /** ** The ID of the Amazon Web Services account that owns the DHCP options set. *
* * @param ownerId * The ID of the Amazon Web Services account that owns the DHCP options set. * @return Returns a reference to this object so that method calls can be chained together. */ public DhcpOptions withOwnerId(String ownerId) { setOwnerId(ownerId); return this; } /** ** Any tags assigned to the DHCP options set. *
* * @return Any tags assigned to the DHCP options set. */ public java.util.List* Any tags assigned to the DHCP options set. *
* * @param tags * Any tags assigned to the DHCP options set. */ public void setTags(java.util.Collection* Any tags assigned to the DHCP options set. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Any tags assigned to the DHCP options set. * @return Returns a reference to this object so that method calls can be chained together. */ public DhcpOptions withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* Any tags assigned to the DHCP options set. *
* * @param tags * Any tags assigned to the DHCP options set. * @return Returns a reference to this object so that method calls can be chained together. */ public DhcpOptions withTags(java.util.Collection