public NetworkResource withDefinition(String definition) {
        setDefinition(definition);
        return this;
    }
<p>
Information about the resource, in JSON format. Network Manager gets this information by describing the resource
using its Describe API call.
</p>

@param definition
       Information about the resource, in JSON format. Network Manager gets this information by describing the
       resource using its Describe API call.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/NetworkResource.java