Package com.dnanexus
Class DXDataObject.DescribeOptions
- java.lang.Object
-
- com.dnanexus.DXDataObject.DescribeOptions
-
- Enclosing class:
- DXDataObject
public static class DXDataObject.DescribeOptions extends Object
Configuration options for a describe call on a data object (e.g.DXDataObject.describe(DescribeOptions)) to control what optional fields get returned and what project to obtain project-specific metadata from.Examples:
DescribeOptions.get().inProject(proj).withDetails()
DescribeOptions.get().withProperties()
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DXDataObject.DescribeOptionsget()Returns a default instance ofDescribeOptionsthat returns no optional fields and selects the project arbitrarily.DXDataObject.DescribeOptionsinProject(DXContainer project)Returns aDescribeOptionsthat behaves like the current one, except that project-specific metadata will be retrieved from the specified project or container.DXDataObject.DescribeOptionswithCustomFields(String... fieldNamesToInclude)Returns aDescribeOptionsthat behaves like the current one, except that only the specified fields will be included in the result.DXDataObject.DescribeOptionswithCustomFields(Collection<? extends String> fieldNamesToInclude)Returns aDescribeOptionsthat behaves like the current one, except that only the fields in the specified collection will be included in the result.DXDataObject.DescribeOptionswithDetails()Returns aDescribeOptionsthat behaves like the current one, except that the details field will be included in the result.DXDataObject.DescribeOptionswithProperties()Returns aDescribeOptionsthat behaves like the current one, except that the properties field will be included in the result.
-
-
-
Method Detail
-
get
public static DXDataObject.DescribeOptions get()
Returns a default instance ofDescribeOptionsthat returns no optional fields and selects the project arbitrarily.- Returns:
- a newly initialized
DescribeOptionsobject
-
inProject
public DXDataObject.DescribeOptions inProject(DXContainer project)
Returns aDescribeOptionsthat behaves like the current one, except that project-specific metadata will be retrieved from the specified project or container. Attempts to invoke accessors on the resultingDXDataObject.Describeobject corresponding to fields that were not requested will throwIllegalStateException.- Parameters:
project- project or container from which to obtain project-specific metadata- Returns:
- a new
DescribeOptionsobject
-
withCustomFields
public DXDataObject.DescribeOptions withCustomFields(String... fieldNamesToInclude)
Returns aDescribeOptionsthat behaves like the current one, except that only the specified fields will be included in the result. Attempts to invoke accessors on the resultingDXDataObject.Describeobject corresponding to fields that were not requested will throwIllegalStateException.- Parameters:
fieldNamesToInclude- API fields to be included- Returns:
- a new
DescribeOptionsobject
-
withCustomFields
public DXDataObject.DescribeOptions withCustomFields(Collection<? extends String> fieldNamesToInclude)
Returns aDescribeOptionsthat behaves like the current one, except that only the fields in the specified collection will be included in the result.- Parameters:
fieldNamesToInclude- collection of API fields to be included- Returns:
- a new
DescribeOptionsobject
-
withDetails
public DXDataObject.DescribeOptions withDetails()
Returns aDescribeOptionsthat behaves like the current one, except that the details field will be included in the result.- Returns:
- a new
DescribeOptionsobject
-
withProperties
public DXDataObject.DescribeOptions withProperties()
Returns aDescribeOptionsthat behaves like the current one, except that the properties field will be included in the result.- Returns:
- a new
DescribeOptionsobject
-
-