public MessageDetail withResourceName(String resourceName) {
        setResourceName(resourceName);
        return this;
    }
The name of the resource.

@param resourceName
       The name of the resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/MessageDetail.java