Class ContainerScanRecipe.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.ContainerScanRecipe.Builder
-
- Enclosing class:
- ContainerScanRecipe
public static class ContainerScanRecipe.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerScanRecipebuild()ContainerScanRecipe.BuildercompartmentId(String compartmentId)The OCID of the container scan recipe’s compartmentContainerScanRecipe.Buildercopy(ContainerScanRecipe model)ContainerScanRecipe.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ContainerScanRecipe.BuilderdisplayName(String displayName)User friendly name of container scan recipeContainerScanRecipe.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ContainerScanRecipe.Builderid(String id)The OCID of container scan recipe.ContainerScanRecipe.BuilderimageCount(Integer imageCount)This field is set equal to the number of images we want to scan in the first go when the recipe is createdContainerScanRecipe.BuilderlifecycleState(LifecycleState lifecycleState)The current state of the config.ContainerScanRecipe.BuilderscanSettings(ContainerScanSettings scanSettings)ContainerScanRecipe.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.ContainerScanRecipe.BuildertimeCreated(Date timeCreated)Date and time the recipe was created, format as described in RFC 3339ContainerScanRecipe.BuildertimeUpdated(Date timeUpdated)Date and time the recipe was last updated, format as described in RFC 3339
-
-
-
Method Detail
-
id
public ContainerScanRecipe.Builder id(String id)
The OCID of container scan recipe.Immutable and generated on creation.
- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public ContainerScanRecipe.Builder displayName(String displayName)
User friendly name of container scan recipe- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public ContainerScanRecipe.Builder compartmentId(String compartmentId)
The OCID of the container scan recipe’s compartment- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
imageCount
public ContainerScanRecipe.Builder imageCount(Integer imageCount)
This field is set equal to the number of images we want to scan in the first go when the recipe is created- Parameters:
imageCount- the value to set- Returns:
- this builder
-
lifecycleState
public ContainerScanRecipe.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the config.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
timeCreated
public ContainerScanRecipe.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 ContainerScanRecipe.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
-
scanSettings
public ContainerScanRecipe.Builder scanSettings(ContainerScanSettings scanSettings)
-
freeformTags
public ContainerScanRecipe.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 ContainerScanRecipe.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 ContainerScanRecipe.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 ContainerScanRecipe build()
-
copy
public ContainerScanRecipe.Builder copy(ContainerScanRecipe model)
-
-