Class HostScanRecipe.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.HostScanRecipe.Builder
-
- Enclosing class:
- HostScanRecipe
public static class HostScanRecipe.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostScanRecipe.Builder
agentSettings(HostScanAgentSettings agentSettings)
HostScanRecipe.Builder
applicationSettings(ApplicationScanSettings applicationSettings)
HostScanRecipe
build()
HostScanRecipe.Builder
compartmentId(String compartmentId)
Compartment ID of the scan recipeHostScanRecipe.Builder
copy(HostScanRecipe model)
HostScanRecipe.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.HostScanRecipe.Builder
displayName(String displayName)
Recipe identifier, which can be renamedHostScanRecipe.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.HostScanRecipe.Builder
id(String id)
Unique identifier of the config that is immutable on creationHostScanRecipe.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the config.HostScanRecipe.Builder
portSettings(HostScanPortSettings portSettings)
HostScanRecipe.Builder
schedule(Schedule schedule)
HostScanRecipe.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.HostScanRecipe.Builder
timeCreated(Date timeCreated)
Date and time the recipe was created, format as described in RFC 3339HostScanRecipe.Builder
timeUpdated(Date timeUpdated)
Date and time the recipe was last updated, format as described in RFC 3339
-
-
-
Method Detail
-
id
public HostScanRecipe.Builder id(String id)
Unique identifier of the config that is immutable on creation- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public HostScanRecipe.Builder displayName(String displayName)
Recipe identifier, which can be renamed- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public HostScanRecipe.Builder compartmentId(String compartmentId)
Compartment ID of the scan recipe- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
lifecycleState
public HostScanRecipe.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the config.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public HostScanRecipe.Builder timeCreated(Date timeCreated)
Date and time the recipe was created, format as described in RFC 3339- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public HostScanRecipe.Builder timeUpdated(Date timeUpdated)
Date and time the recipe was last updated, format as described in RFC 3339- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
portSettings
public HostScanRecipe.Builder portSettings(HostScanPortSettings portSettings)
-
agentSettings
public HostScanRecipe.Builder agentSettings(HostScanAgentSettings agentSettings)
-
applicationSettings
public HostScanRecipe.Builder applicationSettings(ApplicationScanSettings applicationSettings)
-
schedule
public HostScanRecipe.Builder schedule(Schedule schedule)
-
freeformTags
public HostScanRecipe.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 HostScanRecipe.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
-
systemTags
public HostScanRecipe.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public HostScanRecipe build()
-
copy
public HostScanRecipe.Builder copy(HostScanRecipe model)
-
-