/** * <p> * Information about the health of the instances. * </p> * * @param instanceStates * Information about the health of the instances. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInstanceHealthResult withInstanceStates(java.util.Collection<InstanceState> instanceStates) { setInstanceStates(instanceStates); return this; }
/** * <p> * Information about the health of the instances. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setInstanceStates(java.util.Collection)} or {@link #withInstanceStates(java.util.Collection)} if you want * to override the existing values. * </p> * * @param instanceStates * Information about the health of the instances. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInstanceHealthResult withInstanceStates(InstanceState... instanceStates) { if (this.instanceStates == null) { setInstanceStates(new com.amazonaws.internal.SdkInternalList<InstanceState>(instanceStates.length)); } for (InstanceState ele : instanceStates) { this.instanceStates.add(ele); } return this; }
/** * <p> * Information about the health of the instances. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param instanceStates <p> * Information about the health of the instances. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public DescribeInstanceHealthResult withInstanceStates( java.util.Collection<InstanceState> instanceStates) { setInstanceStates(instanceStates); return this; }
/** * <p> * Information about the health of the instances. * </p> * * @param instanceStates * Information about the health of the instances. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInstanceHealthResult withInstanceStates(java.util.Collection<InstanceState> instanceStates) { setInstanceStates(instanceStates); return this; }
/** * <p> * Information about the health of the instances. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setInstanceStates(java.util.Collection)} or {@link #withInstanceStates(java.util.Collection)} if you want * to override the existing values. * </p> * * @param instanceStates * Information about the health of the instances. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInstanceHealthResult withInstanceStates(InstanceState... instanceStates) { if (this.instanceStates == null) { setInstanceStates(new com.amazonaws.internal.SdkInternalList<InstanceState>(instanceStates.length)); } for (InstanceState ele : instanceStates) { this.instanceStates.add(ele); } return this; }