public static class UserAssessmentSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UserAssessmentSummary |
build() |
UserAssessmentSummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the user assessment.
|
UserAssessmentSummary.Builder |
copy(UserAssessmentSummary model) |
UserAssessmentSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
UserAssessmentSummary.Builder |
description(String description)
The description of the user assessment.
|
UserAssessmentSummary.Builder |
displayName(String displayName)
The display name of the user assessment.
|
UserAssessmentSummary.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
UserAssessmentSummary.Builder |
id(String id)
The OCID of the user assessment.
|
UserAssessmentSummary.Builder |
ignoredAssessmentIds(List<Object> ignoredAssessmentIds)
List containing maps as values.
|
UserAssessmentSummary.Builder |
ignoredTargets(List<Object> ignoredTargets)
List containing maps as values.
|
UserAssessmentSummary.Builder |
isAssessmentScheduled(Boolean isAssessmentScheduled)
Indicates whether the assessment is scheduled to run.
|
UserAssessmentSummary.Builder |
isBaseline(Boolean isBaseline)
Indicates if the assessment is a baseline assessment.
|
UserAssessmentSummary.Builder |
isDeviatedFromBaseline(Boolean isDeviatedFromBaseline)
Indicates if the assessment has deviated from the baseline.
|
UserAssessmentSummary.Builder |
lastComparedBaselineId(String lastComparedBaselineId)
The OCID of the last user assessment baseline against which the latest assessment was
compared.
|
UserAssessmentSummary.Builder |
lifecycleDetails(String lifecycleDetails)
Details about the current state of the user assessment.
|
UserAssessmentSummary.Builder |
lifecycleState(UserAssessmentLifecycleState lifecycleState)
The current state of the user assessment.
|
UserAssessmentSummary.Builder |
schedule(String schedule)
Schedule to save the assessment periodically in the specified format:
|
UserAssessmentSummary.Builder |
scheduleAssessmentId(String scheduleAssessmentId)
The OCID of the user assessment that created this scheduled save assessment.
|
UserAssessmentSummary.Builder |
statistics(Map<String,Map<String,Object>> statistics)
Map that contains maps of values.
|
UserAssessmentSummary.Builder |
targetIds(List<String> targetIds)
Array of database target OCIDs.
|
UserAssessmentSummary.Builder |
timeCreated(Date timeCreated)
The date and time the user assessment was created, in the format defined by
RFC3339.
|
UserAssessmentSummary.Builder |
timeLastAssessed(Date timeLastAssessed)
The date and time the user assessment was last executed, in the format defined by
RFC3339.
|
UserAssessmentSummary.Builder |
timeUpdated(Date timeUpdated)
The last date and time the user assessment was updated, in the format defined by
RFC3339.
|
UserAssessmentSummary.Builder |
triggeredBy(UserAssessmentSummary.TriggeredBy triggeredBy)
Indicates whether the user assessment was created by the system or the user.
|
UserAssessmentSummary.Builder |
type(UserAssessmentSummary.Type type)
The type of the user assessment.
|
public UserAssessmentSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the user assessment.
compartmentId
- the value to setpublic UserAssessmentSummary.Builder description(String description)
The description of the user assessment.
description
- the value to setpublic UserAssessmentSummary.Builder displayName(String displayName)
The display name of the user assessment.
displayName
- the value to setpublic UserAssessmentSummary.Builder id(String id)
The OCID of the user assessment.
id
- the value to setpublic UserAssessmentSummary.Builder ignoredTargets(List<Object> ignoredTargets)
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ]
}
ignoredTargets
- the value to setpublic UserAssessmentSummary.Builder ignoredAssessmentIds(List<Object> ignoredAssessmentIds)
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ]
}
ignoredAssessmentIds
- the value to setpublic UserAssessmentSummary.Builder isBaseline(Boolean isBaseline)
Indicates if the assessment is a baseline assessment. This applies to saved user assessments only.
isBaseline
- the value to setpublic UserAssessmentSummary.Builder isDeviatedFromBaseline(Boolean isDeviatedFromBaseline)
Indicates if the assessment has deviated from the baseline.
isDeviatedFromBaseline
- the value to setpublic UserAssessmentSummary.Builder lastComparedBaselineId(String lastComparedBaselineId)
The OCID of the last user assessment baseline against which the latest assessment was compared.
lastComparedBaselineId
- the value to setpublic UserAssessmentSummary.Builder lifecycleState(UserAssessmentLifecycleState lifecycleState)
The current state of the user assessment.
lifecycleState
- the value to setpublic UserAssessmentSummary.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the user assessment.
lifecycleDetails
- the value to setpublic UserAssessmentSummary.Builder scheduleAssessmentId(String scheduleAssessmentId)
The OCID of the user assessment that created this scheduled save assessment.
scheduleAssessmentId
- the value to setpublic UserAssessmentSummary.Builder isAssessmentScheduled(Boolean isAssessmentScheduled)
Indicates whether the assessment is scheduled to run.
isAssessmentScheduled
- the value to setpublic UserAssessmentSummary.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 UserAssessmentSummary.Builder statistics(Map<String,Map<String,Object>> statistics)
Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
statistics
- the value to setpublic UserAssessmentSummary.Builder targetIds(List<String> targetIds)
Array of database target OCIDs.
targetIds
- the value to setpublic UserAssessmentSummary.Builder timeCreated(Date timeCreated)
The date and time the user assessment was created, in the format defined by RFC3339.
timeCreated
- the value to setpublic UserAssessmentSummary.Builder timeUpdated(Date timeUpdated)
The last date and time the user assessment was updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic UserAssessmentSummary.Builder timeLastAssessed(Date timeLastAssessed)
The date and time the user assessment was last executed, in the format defined by RFC3339.
timeLastAssessed
- the value to setpublic UserAssessmentSummary.Builder triggeredBy(UserAssessmentSummary.TriggeredBy triggeredBy)
Indicates whether the user assessment was created by the system or the user.
triggeredBy
- the value to setpublic UserAssessmentSummary.Builder type(UserAssessmentSummary.Type type)
The type of the user assessment. The possible types are:
LATEST: The latest assessment that was executed for a target. It can either be system generated as part of the scheduled assessments or user driven by refreshing the latest assessment. SAVED: A saved user assessment. All user assessments are saved in the user assessment history. SAVE_SCHEDULE: The schedule to periodically save the LATEST assessment of a target database. COMPARTMENT: An automatic managed assessment type that stores all details of the targets in one compartment. This will keep an up-to-date status of all potential risks identified in the compartment. It is automatically updated once the latest assessment or refresh action is executed, as well as when a target is deleted or moved to a different compartment.
type
- the value to setpublic UserAssessmentSummary.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 UserAssessmentSummary.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 UserAssessmentSummary build()
public UserAssessmentSummary.Builder copy(UserAssessmentSummary model)
Copyright © 2016–2024. All rights reserved.