/** * <p> * One or more DHCP options in the set. * </p> * * @param dhcpConfigurations * One or more 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<DhcpConfiguration> dhcpConfigurations) { setDhcpConfigurations(dhcpConfigurations); return this; }
/** * <p> * One or more DHCP options in the set. * </p> * <p> * <b>NOTE:</b> 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. * </p> * * @param dhcpConfigurations * One or more 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<DhcpConfiguration>(dhcpConfigurations.length)); } for (DhcpConfiguration ele : dhcpConfigurations) { this.dhcpConfigurations.add(ele); } return this; }
/** * One or more DHCP options in the set. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param dhcpConfigurations One or more DHCP options in the set. * * @return A reference to this updated object so that method calls can be chained * together. */ public DhcpOptions withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations) { if (getDhcpConfigurations() == null) setDhcpConfigurations(new java.util.ArrayList<DhcpConfiguration>(dhcpConfigurations.length)); for (DhcpConfiguration value : dhcpConfigurations) { getDhcpConfigurations().add(value); } return this; }
/** * <p> * One or more DHCP options in the set. * </p> * * @param dhcpConfigurations * One or more 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<DhcpConfiguration> dhcpConfigurations) { setDhcpConfigurations(dhcpConfigurations); return this; }
/** * <p> * One or more DHCP options in the set. * </p> * <p> * <b>NOTE:</b> 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. * </p> * * @param dhcpConfigurations * One or more 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<DhcpConfiguration>(dhcpConfigurations.length)); } for (DhcpConfiguration ele : dhcpConfigurations) { this.dhcpConfigurations.add(ele); } return this; }