/** * <p> * The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone * specified in <code>AvailabilityZones</code>. * </p> * * @param subnets * The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability * Zone specified in <code>AvailabilityZones</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLoadBalancerRequest withSubnets(java.util.Collection<String> subnets) { setSubnets(subnets); return this; }
/** * <p> * The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone * specified in <code>AvailabilityZones</code>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override * the existing values. * </p> * * @param subnets * The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability * Zone specified in <code>AvailabilityZones</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLoadBalancerRequest withSubnets(String... subnets) { if (this.subnets == null) { setSubnets(new com.amazonaws.internal.SdkInternalList<String>(subnets.length)); } for (String ele : subnets) { this.subnets.add(ele); } return this; }
/** * <p> * The IDs of the subnets in your VPC to attach to the load balancer. * Specify one subnet per Availability Zone specified in * <code>AvailabilityZones</code>. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param subnets <p> * The IDs of the subnets in your VPC to attach to the load * balancer. Specify one subnet per Availability Zone specified * in <code>AvailabilityZones</code>. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public CreateLoadBalancerRequest withSubnets(java.util.Collection<String> subnets) { setSubnets(subnets); return this; }
/** * <p> * The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone * specified in <code>AvailabilityZones</code>. * </p> * * @param subnets * The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability * Zone specified in <code>AvailabilityZones</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLoadBalancerRequest withSubnets(java.util.Collection<String> subnets) { setSubnets(subnets); return this; }
/** * <p> * The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone * specified in <code>AvailabilityZones</code>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override * the existing values. * </p> * * @param subnets * The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability * Zone specified in <code>AvailabilityZones</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLoadBalancerRequest withSubnets(String... subnets) { if (this.subnets == null) { setSubnets(new com.amazonaws.internal.SdkInternalList<String>(subnets.length)); } for (String ele : subnets) { this.subnets.add(ele); } return this; }