public static class SecurityAssessment.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SecurityAssessment |
build() |
SecurityAssessment.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the security assessment.
|
SecurityAssessment.Builder |
copy(SecurityAssessment model) |
SecurityAssessment.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
SecurityAssessment.Builder |
description(String description)
The description of the security assessment.
|
SecurityAssessment.Builder |
displayName(String displayName)
The display name of the security assessment.
|
SecurityAssessment.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
SecurityAssessment.Builder |
id(String id)
The OCID of the security assessment.
|
SecurityAssessment.Builder |
ignoredAssessmentIds(List<Object> ignoredAssessmentIds)
List containing maps as values.
|
SecurityAssessment.Builder |
ignoredTargets(List<Object> ignoredTargets)
List containing maps as values.
|
SecurityAssessment.Builder |
isAssessmentScheduled(Boolean isAssessmentScheduled)
Indicates whether the assessment is scheduled to run.
|
SecurityAssessment.Builder |
isBaseline(Boolean isBaseline)
Indicates whether or not the security assessment is set as a baseline.
|
SecurityAssessment.Builder |
isDeviatedFromBaseline(Boolean isDeviatedFromBaseline)
Indicates if the assessment has deviated from the baseline.
|
SecurityAssessment.Builder |
lastComparedBaselineId(String lastComparedBaselineId)
The OCID of the baseline against which the latest security assessment was compared.
|
SecurityAssessment.Builder |
lifecycleDetails(String lifecycleDetails)
Details about the current state of the security assessment.
|
SecurityAssessment.Builder |
lifecycleState(SecurityAssessmentLifecycleState lifecycleState)
The current state of the security assessment.
|
SecurityAssessment.Builder |
link(String link)
The summary of findings for the security assessment
|
SecurityAssessment.Builder |
schedule(String schedule)
Schedule to save the assessment periodically in the specified format:
|
SecurityAssessment.Builder |
scheduleSecurityAssessmentId(String scheduleSecurityAssessmentId)
The OCID of the security assessment that is responsible for creating this scheduled save
assessment.
|
SecurityAssessment.Builder |
statistics(SecurityAssessmentStatistics statistics) |
SecurityAssessment.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
SecurityAssessment.Builder |
targetIds(List<String> targetIds)
Array of database target OCIDs.
|
SecurityAssessment.Builder |
targetVersion(String targetVersion)
The version of the target database.
|
SecurityAssessment.Builder |
timeCreated(Date timeCreated)
The date and time the security assessment was created, in the format defined by
RFC3339.
|
SecurityAssessment.Builder |
timeLastAssessed(Date timeLastAssessed)
The date and time the security assessment was last executed, in the format defined by
RFC3339.
|
SecurityAssessment.Builder |
timeUpdated(Date timeUpdated)
The date and time the security assessment was last updated, in the format defined by
RFC3339.
|
SecurityAssessment.Builder |
triggeredBy(SecurityAssessment.TriggeredBy triggeredBy)
Indicates whether the security assessment was created by system or by a user.
|
SecurityAssessment.Builder |
type(SecurityAssessment.Type type)
The type of this security assessment.
|
public SecurityAssessment.Builder id(String id)
The OCID of the security assessment.
id
- the value to setpublic SecurityAssessment.Builder timeCreated(Date timeCreated)
The date and time the security assessment was created, in the format defined by RFC3339.
timeCreated
- the value to setpublic SecurityAssessment.Builder timeUpdated(Date timeUpdated)
The date and time the security assessment was last updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic SecurityAssessment.Builder timeLastAssessed(Date timeLastAssessed)
The date and time the security assessment was last executed, in the format defined by RFC3339.
timeLastAssessed
- the value to setpublic SecurityAssessment.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the security assessment.
compartmentId
- the value to setpublic SecurityAssessment.Builder displayName(String displayName)
The display name of the security assessment.
displayName
- the value to setpublic SecurityAssessment.Builder targetIds(List<String> targetIds)
Array of database target OCIDs.
targetIds
- the value to setpublic SecurityAssessment.Builder ignoredTargets(List<Object> ignoredTargets)
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ]
}
ignoredTargets
- the value to setpublic SecurityAssessment.Builder ignoredAssessmentIds(List<Object> ignoredAssessmentIds)
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ]
}
ignoredAssessmentIds
- the value to setpublic SecurityAssessment.Builder targetVersion(String targetVersion)
The version of the target database.
targetVersion
- the value to setpublic 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.
isBaseline
- the value to setpublic SecurityAssessment.Builder isDeviatedFromBaseline(Boolean isDeviatedFromBaseline)
Indicates if the assessment has deviated from the baseline.
isDeviatedFromBaseline
- the value to setpublic SecurityAssessment.Builder lastComparedBaselineId(String lastComparedBaselineId)
The OCID of the baseline against which the latest security assessment was compared.
lastComparedBaselineId
- the value to setpublic SecurityAssessment.Builder lifecycleState(SecurityAssessmentLifecycleState lifecycleState)
The current state of the security assessment.
lifecycleState
- the value to setpublic SecurityAssessment.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the security assessment.
lifecycleDetails
- the value to setpublic SecurityAssessment.Builder scheduleSecurityAssessmentId(String scheduleSecurityAssessmentId)
The OCID of the security assessment that is responsible for creating this scheduled save assessment.
scheduleSecurityAssessmentId
- the value to setpublic SecurityAssessment.Builder triggeredBy(SecurityAssessment.TriggeredBy triggeredBy)
Indicates whether the security assessment was created by system or by a user.
triggeredBy
- the value to setpublic SecurityAssessment.Builder description(String description)
The description of the security assessment.
description
- the value to setpublic SecurityAssessment.Builder isAssessmentScheduled(Boolean isAssessmentScheduled)
Indicates whether the assessment is scheduled to run.
isAssessmentScheduled
- the value to setpublic SecurityAssessment.Builder schedule(String schedule)
Schedule to save the assessment periodically in the specified format:
Allowed version strings - "v1" v1's version specific schedule -
schedule
- the value to setpublic SecurityAssessment.Builder link(String link)
The summary of findings for the security assessment
link
- the value to setpublic 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.
type
- the value to setpublic SecurityAssessment.Builder statistics(SecurityAssessmentStatistics statistics)
public 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}}
systemTags
- the value to setpublic SecurityAssessment build()
public SecurityAssessment.Builder copy(SecurityAssessment model)
Copyright © 2016–2024. All rights reserved.