Class CreateSecurityAssessmentDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.CreateSecurityAssessmentDetails.Builder
-
- Enclosing class:
- CreateSecurityAssessmentDetails
public static class CreateSecurityAssessmentDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSecurityAssessmentDetails.BuilderbaseSecurityAssessmentId(String baseSecurityAssessmentId)The OCID of the security assessment.CreateSecurityAssessmentDetailsbuild()CreateSecurityAssessmentDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the security assessment.CreateSecurityAssessmentDetails.Buildercopy(CreateSecurityAssessmentDetails model)CreateSecurityAssessmentDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateSecurityAssessmentDetails.Builderdescription(String description)Description of the security assessment.CreateSecurityAssessmentDetails.BuilderdisplayName(String displayName)The display name of the security assessment.CreateSecurityAssessmentDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CreateSecurityAssessmentDetails.BuilderisAssessmentScheduled(Boolean isAssessmentScheduled)Indicates whether the assessment is scheduled to run.CreateSecurityAssessmentDetails.Builderschedule(String schedule)To schedule the assessment for running periodically, specify the schedule in this attribute.CreateSecurityAssessmentDetails.BuildertargetId(String targetId)The OCID of the target database or target database group on which security assessment is to be run.CreateSecurityAssessmentDetails.BuildertargetType(SecurityAssessmentTargetType targetType)The type of security assessment resource whether it is individual or group resource.CreateSecurityAssessmentDetails.BuildertemplateAssessmentId(String templateAssessmentId)The OCID of the template assessment.CreateSecurityAssessmentDetails.Buildertype(CreateSecurityAssessmentDetails.Type type)The type of the security assessment
-
-
-
Method Detail
-
compartmentId
public CreateSecurityAssessmentDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the security assessment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public CreateSecurityAssessmentDetails.Builder displayName(String displayName)
The display name of the security assessment.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public CreateSecurityAssessmentDetails.Builder description(String description)
Description of the security assessment.- Parameters:
description- the value to set- Returns:
- this builder
-
targetId
public CreateSecurityAssessmentDetails.Builder targetId(String targetId)
The OCID of the target database or target database group on which security assessment is to be run.- Parameters:
targetId- the value to set- Returns:
- this builder
-
targetType
public CreateSecurityAssessmentDetails.Builder targetType(SecurityAssessmentTargetType targetType)
The type of security assessment resource whether it is individual or group resource.For individual target use type TARGET_DATABASE and for group resource use type TARGET_DATABASE_GROUP. If not provided, TARGET_DATABASE would be used as default value.
- Parameters:
targetType- the value to set- Returns:
- this builder
-
type
public CreateSecurityAssessmentDetails.Builder type(CreateSecurityAssessmentDetails.Type type)
The type of the security assessment- Parameters:
type- the value to set- Returns:
- this builder
-
templateAssessmentId
public CreateSecurityAssessmentDetails.Builder templateAssessmentId(String templateAssessmentId)
The OCID of the template assessment.It will be required while creating the template baseline assessment.
- Parameters:
templateAssessmentId- the value to set- Returns:
- this builder
-
baseSecurityAssessmentId
public CreateSecurityAssessmentDetails.Builder baseSecurityAssessmentId(String baseSecurityAssessmentId)
The OCID of the security assessment.The assessment should be of type SAVED. It will be required while creating the template baseline assessment for individual targets to fetch the detailed information from an existing security assessment.
- Parameters:
baseSecurityAssessmentId- the value to set- Returns:
- this builder
-
isAssessmentScheduled
public CreateSecurityAssessmentDetails.Builder isAssessmentScheduled(Boolean isAssessmentScheduled)
Indicates whether the assessment is scheduled to run.- Parameters:
isAssessmentScheduled- the value to set- Returns:
- this builder
-
schedule
public CreateSecurityAssessmentDetails.Builder schedule(String schedule)
To schedule the assessment for running periodically, specify the schedule in this attribute.Create or schedule one assessment per compartment. If not defined, the assessment runs immediately. Format -
; Allowed version strings - "v1" v1's version specific schedule -
Each of the above fields potentially introduce constraints. A workrequest is created only when clock time satisfies all the constraints. Constraints introduced: 1. seconds = (So, the allowed range for is [0, 59]) 2. minutes = (So, the allowed range for is [0, 59]) 3. hours = (So, the allowed range for is [0, 23]) can be either '*' (without quotes or a number between 1(Monday) and 7(Sunday)) 4. No constraint introduced when it is '*'. When not, day of week must equal the given value can be either '*' (without quotes or a number between 1 and 28) 5. No constraint introduced when it is '*'. When not, day of month must equal the given value - Parameters:
schedule- the value to set- Returns:
- this builder
-
freeformTags
public CreateSecurityAssessmentDetails.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
Example: {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public CreateSecurityAssessmentDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public CreateSecurityAssessmentDetails build()
-
copy
public CreateSecurityAssessmentDetails.Builder copy(CreateSecurityAssessmentDetails model)
-
-