Class SecurityAssessmentSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.SecurityAssessmentSummary.Builder
-
- Enclosing class:
- SecurityAssessmentSummary
public static class SecurityAssessmentSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityAssessmentSummary.BuilderbaselineAssessmentId(String baselineAssessmentId)The OCID of the security assessment of type TEMPLATE_BASELINE.SecurityAssessmentSummarybuild()SecurityAssessmentSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the security assessment.SecurityAssessmentSummary.Buildercopy(SecurityAssessmentSummary model)SecurityAssessmentSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.SecurityAssessmentSummary.Builderdescription(String description)The description of the security assessment.SecurityAssessmentSummary.BuilderdisplayName(String displayName)The display name of the security assessment.SecurityAssessmentSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.SecurityAssessmentSummary.Builderid(String id)The OCID of the security assessment.SecurityAssessmentSummary.BuilderignoredAssessmentIds(List<Object> ignoredAssessmentIds)List containing maps as values.SecurityAssessmentSummary.BuilderignoredTargetIds(List<Object> ignoredTargetIds)List containing maps as values.SecurityAssessmentSummary.BuilderisBaseline(Boolean isBaseline)Indicates whether or not the assessment is a baseline assessment.SecurityAssessmentSummary.BuilderisDeviatedFromBaseline(Boolean isDeviatedFromBaseline)Indicates whether or not the security assessment deviates from the baseline.SecurityAssessmentSummary.BuilderlastComparedBaselineId(String lastComparedBaselineId)The OCID of the baseline against which the latest assessment was compared.SecurityAssessmentSummary.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the security assessment.SecurityAssessmentSummary.BuilderlifecycleState(SecurityAssessmentLifecycleState lifecycleState)The current state of the security assessment.SecurityAssessmentSummary.Builderlink(String link)The summary of findings for the security assessment.SecurityAssessmentSummary.Builderschedule(String schedule)Schedule of the assessment that runs periodically in the specified format: -; SecurityAssessmentSummary.BuilderscheduleSecurityAssessmentId(String scheduleSecurityAssessmentId)The OCID of the security assessment that created this scheduled save assessment.SecurityAssessmentSummary.Builderstatistics(SecurityAssessmentStatistics statistics)SecurityAssessmentSummary.BuildertargetDatabaseGroupId(String targetDatabaseGroupId)The OCID of target database group.SecurityAssessmentSummary.BuildertargetIds(List<String> targetIds)Array of database target OCIDs.SecurityAssessmentSummary.BuildertargetType(SecurityAssessmentTargetType targetType)Indicates whether the security assessment is for a target database or a target database group.SecurityAssessmentSummary.BuildertemplateAssessmentId(String templateAssessmentId)The OCID of the security assessment of type TEMPLATE.SecurityAssessmentSummary.BuildertimeCreated(Date timeCreated)The date and time the security assessment was created, in the format defined by RFC3339.SecurityAssessmentSummary.BuildertimeLastAssessed(Date timeLastAssessed)The date and time the security assessment was last executed, in the format defined by RFC3339.SecurityAssessmentSummary.BuildertimeUpdated(Date timeUpdated)The date and time the security assessment was last updated, in the format defined by RFC3339.SecurityAssessmentSummary.BuildertriggeredBy(SecurityAssessmentSummary.TriggeredBy triggeredBy)Indicates whether the security assessment was created by system or by a user.SecurityAssessmentSummary.Buildertype(SecurityAssessmentSummary.Type type)The type of the security assessment.
-
-
-
Method Detail
-
id
public SecurityAssessmentSummary.Builder id(String id)
The OCID of the security assessment.- Parameters:
id- the value to set- Returns:
- this builder
-
targetDatabaseGroupId
public SecurityAssessmentSummary.Builder targetDatabaseGroupId(String targetDatabaseGroupId)
The OCID of target database group.- Parameters:
targetDatabaseGroupId- the value to set- Returns:
- this builder
-
targetType
public SecurityAssessmentSummary.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
-
description
public SecurityAssessmentSummary.Builder description(String description)
The description of the security assessment.- Parameters:
description- the value to set- Returns:
- this builder
-
lifecycleState
public SecurityAssessmentSummary.Builder lifecycleState(SecurityAssessmentLifecycleState lifecycleState)
The current state of the security assessment.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public SecurityAssessmentSummary.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the security assessment.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
timeCreated
public SecurityAssessmentSummary.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
-
timeUpdated
public SecurityAssessmentSummary.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
-
timeLastAssessed
public SecurityAssessmentSummary.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
-
compartmentId
public SecurityAssessmentSummary.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 SecurityAssessmentSummary.Builder displayName(String displayName)
The display name of the security assessment.- Parameters:
displayName- the value to set- Returns:
- this builder
-
targetIds
public SecurityAssessmentSummary.Builder targetIds(List<String> targetIds)
Array of database target OCIDs.- Parameters:
targetIds- the value to set- Returns:
- this builder
-
ignoredTargetIds
public SecurityAssessmentSummary.Builder ignoredTargetIds(List<Object> ignoredTargetIds)
List containing maps as values.Example: {“Operations”: [ {“CostCenter”: “42”} ] }
- Parameters:
ignoredTargetIds- the value to set- Returns:
- this builder
-
ignoredAssessmentIds
public SecurityAssessmentSummary.Builder ignoredAssessmentIds(List<Object> ignoredAssessmentIds)
List containing maps as values.Example: {“Operations”: [ {“CostCenter”: “42”} ] }
- Parameters:
ignoredAssessmentIds- the value to set- Returns:
- this builder
-
isBaseline
public SecurityAssessmentSummary.Builder isBaseline(Boolean isBaseline)
Indicates whether or not the assessment is a baseline assessment.This applied to saved security assessments only.
- Parameters:
isBaseline- the value to set- Returns:
- this builder
-
isDeviatedFromBaseline
public SecurityAssessmentSummary.Builder isDeviatedFromBaseline(Boolean isDeviatedFromBaseline)
Indicates whether or not the security assessment deviates from the baseline.- Parameters:
isDeviatedFromBaseline- the value to set- Returns:
- this builder
-
lastComparedBaselineId
public SecurityAssessmentSummary.Builder lastComparedBaselineId(String lastComparedBaselineId)
The OCID of the baseline against which the latest assessment was compared.- Parameters:
lastComparedBaselineId- the value to set- Returns:
- this builder
-
scheduleSecurityAssessmentId
public SecurityAssessmentSummary.Builder scheduleSecurityAssessmentId(String scheduleSecurityAssessmentId)
The OCID of the security assessment that created this scheduled save assessment.- Parameters:
scheduleSecurityAssessmentId- the value to set- Returns:
- this builder
-
templateAssessmentId
public SecurityAssessmentSummary.Builder templateAssessmentId(String templateAssessmentId)
The OCID of the security assessment of type TEMPLATE.- Parameters:
templateAssessmentId- the value to set- Returns:
- this builder
-
baselineAssessmentId
public SecurityAssessmentSummary.Builder baselineAssessmentId(String baselineAssessmentId)
The OCID of the security assessment of type TEMPLATE_BASELINE.- Parameters:
baselineAssessmentId- the value to set- Returns:
- this builder
-
schedule
public SecurityAssessmentSummary.Builder schedule(String schedule)
Schedule of the assessment that runs 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
-
triggeredBy
public SecurityAssessmentSummary.Builder triggeredBy(SecurityAssessmentSummary.TriggeredBy triggeredBy)
Indicates whether the security assessment was created by system or by a user.- Parameters:
triggeredBy- the value to set- Returns:
- this builder
-
link
public SecurityAssessmentSummary.Builder link(String link)
The summary of findings for the security assessment.- Parameters:
link- the value to set- Returns:
- this builder
-
type
public SecurityAssessmentSummary.Builder type(SecurityAssessmentSummary.Type type)
The type of the security assessment.Possible values 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. TEMPLATE: The security assessment contains the checks that the user would like to run. It is user defined. TEMPLATE_BASELINE: The security assessment contains the checks that the user would like to run, together with the max allowed severity. The max allowed severity can be defined by the user. 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
-
statistics
public SecurityAssessmentSummary.Builder statistics(SecurityAssessmentStatistics statistics)
-
freeformTags
public SecurityAssessmentSummary.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 SecurityAssessmentSummary.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 SecurityAssessmentSummary build()
-
copy
public SecurityAssessmentSummary.Builder copy(SecurityAssessmentSummary model)
-
-