public ListResourceDefinitionsResult withDefinitions(DefinitionInformation... definitions) {
        if (this.definitions == null) {
            setDefinitions(new java.util.ArrayList<DefinitionInformation>(definitions.length));
        }
        for (DefinitionInformation ele : definitions) {
            this.definitions.add(ele);
        }
        return this;
    }
Information about a definition.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDefinitions(java.util.Collection)} or {@link #withDefinitions(java.util.Collection)} if you want to
override the existing values.
</p>

@param definitions
       Information about a definition.
@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/ListResourceDefinitionsResult.java