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