Class DataResource.DataResourceBuilder

java.lang.Object
org.ivoa.dm.execution.DataResource.DataResourceBuilder
Enclosing class:
DataResource

public static class DataResource.DataResourceBuilder extends Object
A builder class for DataResource, mainly for use in the functional builder pattern.
  • Field Details

    • location

      public PhysicalLocation location
      the location of the data.
    • size

      public Double size
      the size of the data resource in GB.
    • mimeType

      public String mimeType
      the mime type of the data resource.
    • accessUrl

      public String accessUrl
      the URL that can be used to access the data resource.
  • Constructor Details

    • DataResourceBuilder

      public DataResourceBuilder()
  • Method Details

    • create

      public DataResource create()
      create a DataResource from this builder.
      Returns:
      an object initialized from the builder.