Class SecurityAssessment.Builder
- java.lang.Object
- 
- com.oracle.bmc.datasafe.model.SecurityAssessment.Builder
 
- 
- Enclosing class:
- SecurityAssessment
 
 public static class SecurityAssessment.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityAssessment.BuilderbaselineAssessmentId(String baselineAssessmentId)The ocid of a security assessment which is of type TEMPLATE_BASELINE, this will be null or empty when type is TEMPLATE_BASELINE.SecurityAssessmentbuild()SecurityAssessment.Builderchecks(List<Check> checks)The security checks to be evaluated for type template.SecurityAssessment.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the security assessment.SecurityAssessment.Buildercopy(SecurityAssessment model)SecurityAssessment.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.SecurityAssessment.Builderdescription(String description)The description of the security assessment.SecurityAssessment.BuilderdisplayName(String displayName)The display name of the security assessment.SecurityAssessment.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.SecurityAssessment.Builderid(String id)The OCID of the security assessment.SecurityAssessment.BuilderignoredAssessmentIds(List<Object> ignoredAssessmentIds)List containing maps as values.SecurityAssessment.BuilderignoredTargets(List<Object> ignoredTargets)List containing maps as values.SecurityAssessment.BuilderisAssessmentScheduled(Boolean isAssessmentScheduled)Indicates whether the assessment is scheduled to run.SecurityAssessment.BuilderisBaseline(Boolean isBaseline)Indicates whether or not the security assessment is set as a baseline.SecurityAssessment.BuilderisDeviatedFromBaseline(Boolean isDeviatedFromBaseline)Indicates if the assessment has deviated from the baseline.SecurityAssessment.BuilderlastComparedBaselineId(String lastComparedBaselineId)The OCID of the baseline against which the latest security assessment was compared.SecurityAssessment.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the security assessment.SecurityAssessment.BuilderlifecycleState(SecurityAssessmentLifecycleState lifecycleState)The current state of the security assessment.SecurityAssessment.Builderlink(String link)The summary of findings for the security assessmentSecurityAssessment.Builderschedule(String schedule)Schedule to save the assessment periodically in the specified format:; SecurityAssessment.BuilderscheduleSecurityAssessmentId(String scheduleSecurityAssessmentId)The OCID of the security assessment that is responsible for creating this scheduled save assessment.SecurityAssessment.Builderstatistics(SecurityAssessmentStatistics statistics)SecurityAssessment.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.SecurityAssessment.BuildertargetDatabaseGroupId(String targetDatabaseGroupId)The OCID of the target database group that the group assessment is created for.SecurityAssessment.BuildertargetIds(List<String> targetIds)Array of database target OCIDs.SecurityAssessment.BuildertargetType(SecurityAssessmentTargetType targetType)Indicates whether the security assessment is for a target database or a target database group.SecurityAssessment.BuildertargetVersion(String targetVersion)The version of the target database.SecurityAssessment.BuildertemplateAssessmentId(String templateAssessmentId)The ocid of a security assessment which is of type TEMPLATE, this will be null or empty when type is TEMPLATE.SecurityAssessment.BuildertimeCreated(Date timeCreated)The date and time the security assessment was created, in the format defined by RFC3339.SecurityAssessment.BuildertimeLastAssessed(Date timeLastAssessed)The date and time the security assessment was last executed, in the format defined by RFC3339.SecurityAssessment.BuildertimeUpdated(Date timeUpdated)The date and time the security assessment was last updated, in the format defined by RFC3339.SecurityAssessment.BuildertriggeredBy(SecurityAssessment.TriggeredBy triggeredBy)Indicates whether the security assessment was created by system or by a user.SecurityAssessment.Buildertype(SecurityAssessment.Type type)The type of this security assessment.
 
- 
- 
- 
Method Detail- 
idpublic SecurityAssessment.Builder id(String id) The OCID of the security assessment.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic SecurityAssessment.Builder timeCreated(Date timeCreated) The date and time the security assessment was created, in the format defined by RFC3339.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic SecurityAssessment.Builder timeUpdated(Date timeUpdated) The date and time the security assessment was last updated, in the format defined by RFC3339.- Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
timeLastAssessedpublic SecurityAssessment.Builder timeLastAssessed(Date timeLastAssessed) The date and time the security assessment was last executed, in the format defined by RFC3339.- Parameters:
- timeLastAssessed- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic SecurityAssessment.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the security assessment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic SecurityAssessment.Builder displayName(String displayName) The display name of the security assessment.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
targetIdspublic SecurityAssessment.Builder targetIds(List<String> targetIds) Array of database target OCIDs.- Parameters:
- targetIds- the value to set
- Returns:
- this builder
 
 - 
ignoredTargetspublic SecurityAssessment.Builder ignoredTargets(List<Object> ignoredTargets) List containing maps as values.Example: {“Operations”: [ {“CostCenter”: “42”} ] } - Parameters:
- ignoredTargets- the value to set
- Returns:
- this builder
 
 - 
ignoredAssessmentIdspublic SecurityAssessment.Builder ignoredAssessmentIds(List<Object> ignoredAssessmentIds) List containing maps as values.Example: {“Operations”: [ {“CostCenter”: “42”} ] } - Parameters:
- ignoredAssessmentIds- the value to set
- Returns:
- this builder
 
 - 
targetVersionpublic SecurityAssessment.Builder targetVersion(String targetVersion) The version of the target database.- Parameters:
- targetVersion- the value to set
- Returns:
- this builder
 
 - 
templateAssessmentIdpublic SecurityAssessment.Builder templateAssessmentId(String templateAssessmentId) The ocid of a security assessment which is of type TEMPLATE, this will be null or empty when type is TEMPLATE.- Parameters:
- templateAssessmentId- the value to set
- Returns:
- this builder
 
 - 
baselineAssessmentIdpublic SecurityAssessment.Builder baselineAssessmentId(String baselineAssessmentId) The ocid of a security assessment which is of type TEMPLATE_BASELINE, this will be null or empty when type is TEMPLATE_BASELINE.- Parameters:
- baselineAssessmentId- the value to set
- Returns:
- this builder
 
 - 
isBaselinepublic SecurityAssessment.Builder isBaseline(Boolean isBaseline) Indicates whether or not the security assessment is set as a baseline.This is applicable only for saved security assessments. - Parameters:
- isBaseline- the value to set
- Returns:
- this builder
 
 - 
isDeviatedFromBaselinepublic SecurityAssessment.Builder isDeviatedFromBaseline(Boolean isDeviatedFromBaseline) Indicates if the assessment has deviated from the baseline.- Parameters:
- isDeviatedFromBaseline- the value to set
- Returns:
- this builder
 
 - 
lastComparedBaselineIdpublic SecurityAssessment.Builder lastComparedBaselineId(String lastComparedBaselineId) The OCID of the baseline against which the latest security assessment was compared.- Parameters:
- lastComparedBaselineId- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic SecurityAssessment.Builder lifecycleState(SecurityAssessmentLifecycleState lifecycleState) The current state of the security assessment.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic SecurityAssessment.Builder lifecycleDetails(String lifecycleDetails) Details about the current state of the security assessment.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
scheduleSecurityAssessmentIdpublic SecurityAssessment.Builder scheduleSecurityAssessmentId(String scheduleSecurityAssessmentId) The OCID of the security assessment that is responsible for creating this scheduled save assessment.- Parameters:
- scheduleSecurityAssessmentId- the value to set
- Returns:
- this builder
 
 - 
triggeredBypublic SecurityAssessment.Builder triggeredBy(SecurityAssessment.TriggeredBy triggeredBy) Indicates whether the security assessment was created by system or by a user.- Parameters:
- triggeredBy- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic SecurityAssessment.Builder description(String description) The description of the security assessment.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
isAssessmentScheduledpublic SecurityAssessment.Builder isAssessmentScheduled(Boolean isAssessmentScheduled) Indicates whether the assessment is scheduled to run.- Parameters:
- isAssessmentScheduled- the value to set
- Returns:
- this builder
 
 - 
targetDatabaseGroupIdpublic SecurityAssessment.Builder targetDatabaseGroupId(String targetDatabaseGroupId) The OCID of the target database group that the group assessment is created for.- Parameters:
- targetDatabaseGroupId- the value to set
- Returns:
- this builder
 
 - 
targetTypepublic SecurityAssessment.Builder targetType(SecurityAssessmentTargetType targetType) Indicates whether the security assessment is for a target database or a target database group.- Parameters:
- targetType- the value to set
- Returns:
- this builder
 
 - 
checkspublic SecurityAssessment.Builder checks(List<Check> checks) The security checks to be evaluated for type template.- Parameters:
- checks- the value to set
- Returns:
- this builder
 
 - 
schedulepublic SecurityAssessment.Builder schedule(String schedule) Schedule to save the assessment periodically in the specified 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
 
 - 
linkpublic SecurityAssessment.Builder link(String link) The summary of findings for the security assessment- Parameters:
- link- the value to set
- Returns:
- this builder
 
 - 
typepublic SecurityAssessment.Builder type(SecurityAssessment.Type type) The type of this security assessment.The possible types are: LATEST: The most up-to-date assessment that is running automatically for a target. It is system generated. SAVED: A saved security assessment. LATEST assessments are always saved in order to maintain the history of runs. A SAVED assessment is also generated by a 'refresh' action (triggered by the user). SAVE_SCHEDULE: The schedule for periodic saves of LATEST assessments. COMPARTMENT: An automatically managed assessment type that stores all details of targets in one compartment. This type keeps an up-to-date assessment of all database risks in one compartment. It is automatically updated when the latest assessment or refresh action is executed. It is also automatically updated when a target is deleted or move to a different compartment. - Parameters:
- type- the value to set
- Returns:
- this builder
 
 - 
statisticspublic SecurityAssessment.Builder statistics(SecurityAssessmentStatistics statistics) 
 - 
freeformTagspublic SecurityAssessment.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
 
 - 
definedTagspublic SecurityAssessment.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
 
 - 
systemTagspublic SecurityAssessment.Builder systemTags(Map<String,Map<String,Object>> systemTags) System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}} - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic SecurityAssessment build() 
 - 
copypublic SecurityAssessment.Builder copy(SecurityAssessment model) 
 
- 
 
-