Class ScanJob.Inventory
-
- All Implemented Interfaces:
public final class ScanJob.Inventory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classScanJob.Inventory.BuilderA builder for Inventory.
public final classScanJob.Inventory.RequestSourceIdentifies the system that requested the scan
public final classScanJob.Inventory.ScanTargetSpecifies what to scan. Must provide at least one of: deep_scan with file location details, provider_details, or both.
-
Method Summary
Modifier and Type Method Description final StringmodelName()Name of the model final StringmodelVersion()If you do not provide a version, one will be generated for you. final StringrequestingEntity()Entity that requested the scan final Optional<String>origin()Specifies the platform or service where the model originated before being scanned final Optional<ScanJob.Inventory.RequestSource>requestSource()Identifies the system that requested the scan final Optional<String>requestedScanLocation()DEPRECATED: Use scan_targetinstead.final Optional<ScanJob.Inventory.ScanTarget>scanTarget()Specifies what to scan. final JsonField<String>_modelName()Returns the raw JSON value of modelName. final JsonField<String>_modelVersion()Returns the raw JSON value of modelVersion. final JsonField<String>_requestingEntity()Returns the raw JSON value of requestingEntity. final JsonField<String>_origin()Returns the raw JSON value of origin. final JsonField<ScanJob.Inventory.RequestSource>_requestSource()Returns the raw JSON value of requestSource. final JsonField<String>_requestedScanLocation()Returns the raw JSON value of requestedScanLocation. final JsonField<ScanJob.Inventory.ScanTarget>_scanTarget()Returns the raw JSON value of scanTarget. final Map<String, JsonValue>_additionalProperties()final ScanJob.Inventory.BuildertoBuilder()final ScanJob.Inventoryvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ScanJob.Inventory.Builderbuilder()Returns a mutable builder for constructing an instance of Inventory. -
-
Method Detail
-
modelVersion
final String modelVersion()
If you do not provide a version, one will be generated for you.
-
requestingEntity
final String requestingEntity()
Entity that requested the scan
-
origin
final Optional<String> origin()
Specifies the platform or service where the model originated before being scanned
-
requestSource
final Optional<ScanJob.Inventory.RequestSource> requestSource()
Identifies the system that requested the scan
-
requestedScanLocation
@Deprecated(message = "deprecated") final Optional<String> requestedScanLocation()
DEPRECATED: Use
scan_targetinstead. Location of files to be scanned. Maintained for backwards compatibility. If bothrequested_scan_locationandscan_targetare provided,scan_targettakes precedence.
-
scanTarget
final Optional<ScanJob.Inventory.ScanTarget> scanTarget()
Specifies what to scan. Must provide at least one of: deep_scan with file location details, provider_details, or both.
-
_modelName
final JsonField<String> _modelName()
Returns the raw JSON value of modelName.
Unlike modelName, this method doesn't throw if the JSON field has an unexpected type.
-
_modelVersion
final JsonField<String> _modelVersion()
Returns the raw JSON value of modelVersion.
Unlike modelVersion, this method doesn't throw if the JSON field has an unexpected type.
-
_requestingEntity
final JsonField<String> _requestingEntity()
Returns the raw JSON value of requestingEntity.
Unlike requestingEntity, this method doesn't throw if the JSON field has an unexpected type.
-
_origin
final JsonField<String> _origin()
Returns the raw JSON value of origin.
Unlike origin, this method doesn't throw if the JSON field has an unexpected type.
-
_requestSource
final JsonField<ScanJob.Inventory.RequestSource> _requestSource()
Returns the raw JSON value of requestSource.
Unlike requestSource, this method doesn't throw if the JSON field has an unexpected type.
-
_requestedScanLocation
@Deprecated(message = "deprecated") final JsonField<String> _requestedScanLocation()
Returns the raw JSON value of requestedScanLocation.
Unlike requestedScanLocation, this method doesn't throw if the JSON field has an unexpected type.
-
_scanTarget
final JsonField<ScanJob.Inventory.ScanTarget> _scanTarget()
Returns the raw JSON value of scanTarget.
Unlike scanTarget, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ScanJob.Inventory.Builder toBuilder()
-
validate
final ScanJob.Inventory validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ScanJob.Inventory.Builder builder()
Returns a mutable builder for constructing an instance of Inventory.
The following fields are required:
.modelName() .modelVersion() .requestingEntity()
-
-
-
-