public SubscriptionDefinitionVersion withSubscriptions(Subscription... subscriptions) {
        if (this.subscriptions == null) {
            setSubscriptions(new java.util.ArrayList<Subscription>(subscriptions.length));
        }
        for (Subscription ele : subscriptions) {
            this.subscriptions.add(ele);
        }
        return this;
    }
A list of subscriptions.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSubscriptions(java.util.Collection)} or {@link #withSubscriptions(java.util.Collection)} if you want
to override the existing values.
</p>

@param subscriptions
       A list of subscriptions.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/SubscriptionDefinitionVersion.java