Class Resource.Builder

  • Enclosing class:
    Resource

    public static final class Resource.Builder
    extends java.lang.Object
    Builder class for Resource.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of Resource.
    • Method Detail

      • setLinks

        public Resource.Builder setLinks​(java.util.List<ResourceLink> links)
        The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        links - New value for the property.
      • setSchema

        public Resource.Builder setSchema​(java.lang.String schema)
        Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        schema - New value for the property.