/** * <p> * A collection of the resource properties whose actual values differ from their expected values. These will be * present only for resources whose <code>StackResourceDriftStatus</code> is <code>MODIFIED</code>. * </p> * * @param propertyDifferences * A collection of the resource properties whose actual values differ from their expected values. These will * be present only for resources whose <code>StackResourceDriftStatus</code> is <code>MODIFIED</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDrift withPropertyDifferences(java.util.Collection<PropertyDifference> propertyDifferences) { setPropertyDifferences(propertyDifferences); return this; }
/** * <p> * A collection of the resource properties whose actual values differ from their expected values. These will be * present only for resources whose <code>StackResourceDriftStatus</code> is <code>MODIFIED</code>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setPropertyDifferences(java.util.Collection)} or {@link #withPropertyDifferences(java.util.Collection)} * if you want to override the existing values. * </p> * * @param propertyDifferences * A collection of the resource properties whose actual values differ from their expected values. These will * be present only for resources whose <code>StackResourceDriftStatus</code> is <code>MODIFIED</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDrift withPropertyDifferences(PropertyDifference... propertyDifferences) { if (this.propertyDifferences == null) { setPropertyDifferences(new com.amazonaws.internal.SdkInternalList<PropertyDifference>(propertyDifferences.length)); } for (PropertyDifference ele : propertyDifferences) { this.propertyDifferences.add(ele); } return this; }
/** * <p> * A collection of the resource properties whose actual values differ from their expected values. These will be * present only for resources whose <code>StackResourceDriftStatus</code> is <code>MODIFIED</code>. * </p> * * @param propertyDifferences * A collection of the resource properties whose actual values differ from their expected values. These will * be present only for resources whose <code>StackResourceDriftStatus</code> is <code>MODIFIED</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDrift withPropertyDifferences(java.util.Collection<PropertyDifference> propertyDifferences) { setPropertyDifferences(propertyDifferences); return this; }
/** * <p> * A collection of the resource properties whose actual values differ from their expected values. These will be * present only for resources whose <code>StackResourceDriftStatus</code> is <code>MODIFIED</code>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setPropertyDifferences(java.util.Collection)} or {@link #withPropertyDifferences(java.util.Collection)} * if you want to override the existing values. * </p> * * @param propertyDifferences * A collection of the resource properties whose actual values differ from their expected values. These will * be present only for resources whose <code>StackResourceDriftStatus</code> is <code>MODIFIED</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDrift withPropertyDifferences(PropertyDifference... propertyDifferences) { if (this.propertyDifferences == null) { setPropertyDifferences(new com.amazonaws.internal.SdkInternalList<PropertyDifference>(propertyDifferences.length)); } for (PropertyDifference ele : propertyDifferences) { this.propertyDifferences.add(ele); } return this; }