public GetManagedResourceResult withAutoshifts(AutoshiftInResource... autoshifts) {
        if (this.autoshifts == null) {
            setAutoshifts(new java.util.ArrayList<AutoshiftInResource>(autoshifts.length));
        }
        for (AutoshiftInResource ele : autoshifts) {
            this.autoshifts.add(ele);
        }
        return this;
    }
<p>
An array of the autoshifts that are active for the resource.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAutoshifts(java.util.Collection)} or {@link #withAutoshifts(java.util.Collection)} if you want to
override the existing values.
</p>

@param autoshifts
       An array of the autoshifts that are active for the resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-arczonalshift/src/main/java/com/amazonaws/services/arczonalshift/model/GetManagedResourceResult.java