Class UserAssessment.Builder
- java.lang.Object
- 
- com.oracle.bmc.datasafe.model.UserAssessment.Builder
 
- 
- Enclosing class:
- UserAssessment
 
 public static class UserAssessment.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAssessmentbuild()UserAssessment.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the user assessment.UserAssessment.Buildercopy(UserAssessment model)UserAssessment.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.UserAssessment.Builderdescription(String description)The description of the user assessment.UserAssessment.BuilderdisplayName(String displayName)The display name of the user assessment.UserAssessment.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.UserAssessment.Builderid(String id)The OCID of the user assessment.UserAssessment.BuilderignoredAssessmentIds(List<Object> ignoredAssessmentIds)List containing maps as values.UserAssessment.BuilderignoredTargets(List<Object> ignoredTargets)List containing maps as values.UserAssessment.BuilderisAssessmentScheduled(Boolean isAssessmentScheduled)Indicates whether the assessment is scheduled to run.UserAssessment.BuilderisBaseline(Boolean isBaseline)Indicates if the user assessment is set as a baseline.UserAssessment.BuilderisDeviatedFromBaseline(Boolean isDeviatedFromBaseline)Indicates if the user assessment deviates from the baseline.UserAssessment.BuilderlastComparedBaselineId(String lastComparedBaselineId)The OCID of the last user assessment baseline against which the latest assessment was compared.UserAssessment.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the user assessment.UserAssessment.BuilderlifecycleState(UserAssessmentLifecycleState lifecycleState)The current state of the user assessment.UserAssessment.Builderschedule(String schedule)Schedule of the assessment that runs periodically in this specified format:; UserAssessment.BuilderscheduleAssessmentId(String scheduleAssessmentId)The OCID of the user assessment that is responsible for creating this scheduled save assessment.UserAssessment.Builderstatistics(Map<String,Map<String,Object>> statistics)Map that contains maps of values.UserAssessment.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.UserAssessment.BuildertargetDatabaseGroupId(String targetDatabaseGroupId)The OCID of target database group.UserAssessment.BuildertargetIds(List<String> targetIds)Array of database target OCIDs.UserAssessment.BuildertargetType(UserAssessmentTargetType targetType)Indicates whether the user assessment is for a target database or a target database group.UserAssessment.BuildertimeCreated(Date timeCreated)The date and time the user assessment was created, in the format defined by RFC3339.UserAssessment.BuildertimeLastAssessed(Date timeLastAssessed)The date and time the user assessment was last executed, in the format defined by RFC3339.UserAssessment.BuildertimeUpdated(Date timeUpdated)The date and time the user assessment was last updated, in the format defined by RFC3339.UserAssessment.BuildertriggeredBy(UserAssessment.TriggeredBy triggeredBy)Indicates whether the user assessment was created by the system or the user.UserAssessment.Buildertype(UserAssessment.Type type)The type of the user assessment.
 
- 
- 
- 
Method Detail- 
compartmentIdpublic UserAssessment.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the user assessment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic UserAssessment.Builder description(String description) The description of the user assessment.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic UserAssessment.Builder displayName(String displayName) The display name of the user assessment.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
idpublic UserAssessment.Builder id(String id) The OCID of the user assessment.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
ignoredTargetspublic UserAssessment.Builder ignoredTargets(List<Object> ignoredTargets) List containing maps as values.Example: {“Operations”: [ {“CostCenter”: “42”} ] } - Parameters:
- ignoredTargets- the value to set
- Returns:
- this builder
 
 - 
ignoredAssessmentIdspublic UserAssessment.Builder ignoredAssessmentIds(List<Object> ignoredAssessmentIds) List containing maps as values.Example: {“Operations”: [ {“CostCenter”: “42”} ] } - Parameters:
- ignoredAssessmentIds- the value to set
- Returns:
- this builder
 
 - 
isBaselinepublic UserAssessment.Builder isBaseline(Boolean isBaseline) Indicates if the user assessment is set as a baseline.This is applicable only to saved user assessments. - Parameters:
- isBaseline- the value to set
- Returns:
- this builder
 
 - 
isDeviatedFromBaselinepublic UserAssessment.Builder isDeviatedFromBaseline(Boolean isDeviatedFromBaseline) Indicates if the user assessment deviates from the baseline.- Parameters:
- isDeviatedFromBaseline- the value to set
- Returns:
- this builder
 
 - 
lastComparedBaselineIdpublic UserAssessment.Builder lastComparedBaselineId(String lastComparedBaselineId) The OCID of the last user assessment baseline against which the latest assessment was compared.- Parameters:
- lastComparedBaselineId- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic UserAssessment.Builder lifecycleState(UserAssessmentLifecycleState lifecycleState) The current state of the user assessment.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic UserAssessment.Builder lifecycleDetails(String lifecycleDetails) Details about the current state of the user assessment.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
scheduleAssessmentIdpublic UserAssessment.Builder scheduleAssessmentId(String scheduleAssessmentId) The OCID of the user assessment that is responsible for creating this scheduled save assessment.- Parameters:
- scheduleAssessmentId- the value to set
- Returns:
- this builder
 
 - 
isAssessmentScheduledpublic UserAssessment.Builder isAssessmentScheduled(Boolean isAssessmentScheduled) Indicates whether the assessment is scheduled to run.- Parameters:
- isAssessmentScheduled- the value to set
- Returns:
- this builder
 
 - 
targetDatabaseGroupIdpublic UserAssessment.Builder targetDatabaseGroupId(String targetDatabaseGroupId) The OCID of target database group.- Parameters:
- targetDatabaseGroupId- the value to set
- Returns:
- this builder
 
 - 
targetTypepublic UserAssessment.Builder targetType(UserAssessmentTargetType targetType) Indicates whether the user assessment is for a target database or a target database group.- Parameters:
- targetType- the value to set
- Returns:
- this builder
 
 - 
schedulepublic 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 - 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
 
 - 
statisticspublic UserAssessment.Builder statistics(Map<String,Map<String,Object>> statistics) Map that contains maps of values.Example: {“Operations”: {“CostCenter”: “42”}} - Parameters:
- statistics- the value to set
- Returns:
- this builder
 
 - 
targetIdspublic UserAssessment.Builder targetIds(List<String> targetIds) Array of database target OCIDs.- Parameters:
- targetIds- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic UserAssessment.Builder timeCreated(Date timeCreated) The date and time the user assessment was created, in the format defined by RFC3339.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic UserAssessment.Builder timeUpdated(Date timeUpdated) The date and time the user assessment was last updated, in the format defined by RFC3339.- Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
timeLastAssessedpublic UserAssessment.Builder timeLastAssessed(Date timeLastAssessed) The date and time the user assessment was last executed, in the format defined by RFC3339.- Parameters:
- timeLastAssessed- the value to set
- Returns:
- this builder
 
 - 
triggeredBypublic UserAssessment.Builder triggeredBy(UserAssessment.TriggeredBy triggeredBy) Indicates whether the user assessment was created by the system or the user.- Parameters:
- triggeredBy- the value to set
- Returns:
- this builder
 
 - 
typepublic 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. - Parameters:
- type- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic 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"} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic 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”}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
systemTagspublic 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”}} - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic UserAssessment build() 
 - 
copypublic UserAssessment.Builder copy(UserAssessment model) 
 
- 
 
-