Class CreateHostScanTargetDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.CreateHostScanTargetDetails.Builder
-
- Enclosing class:
- CreateHostScanTargetDetails
public static class CreateHostScanTargetDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
displayName
public CreateHostScanTargetDetails.Builder displayName(String displayName)
Target identifier, which can be renamed.If not present, it will be auto-generated. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public CreateHostScanTargetDetails.Builder compartmentId(String compartmentId)
Compartment ID of the object (this).- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
description
public CreateHostScanTargetDetails.Builder description(String description)
Target description.- Parameters:
description
- the value to set- Returns:
- this builder
-
targetCompartmentId
public CreateHostScanTargetDetails.Builder targetCompartmentId(String targetCompartmentId)
Compartment ID to target.If a list of hosts is provided, all hosts must be in this compartment.
- Parameters:
targetCompartmentId
- the value to set- Returns:
- this builder
-
instanceIds
public CreateHostScanTargetDetails.Builder instanceIds(List<String> instanceIds)
List of compute instance IDs to target (optional).If empty, targets the entire targetCompartmentId.
- Parameters:
instanceIds
- the value to set- Returns:
- this builder
-
hostScanRecipeId
public CreateHostScanTargetDetails.Builder hostScanRecipeId(String hostScanRecipeId)
ID of the host scan recipe this target applies.- Parameters:
hostScanRecipeId
- the value to set- Returns:
- this builder
-
freeformTags
public CreateHostScanTargetDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CreateHostScanTargetDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CreateHostScanTargetDetails build()
-
copy
public CreateHostScanTargetDetails.Builder copy(CreateHostScanTargetDetails model)
-
-