Class CryptoAssessment.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.CryptoAssessment.Builder
-
- Enclosing class:
- CryptoAssessment
public static class CryptoAssessment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoAssessmentbuild()CryptoAssessment.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the crypto assessment.CryptoAssessment.Buildercopy(CryptoAssessment model)CryptoAssessment.BuildercryptoPosture(CryptoPosture cryptoPosture)CryptoAssessment.BuildercryptoProvider(String cryptoProvider)Cryptographic provider and version information observed on the target.CryptoAssessment.BuilderdatabaseArchitecture(String databaseArchitecture)The architecture of the assessed target database.CryptoAssessment.BuilderdatabaseName(String databaseName)The name of the assessed target database.CryptoAssessment.BuilderdatabaseVersion(String databaseVersion)The version of the assessed target database.CryptoAssessment.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CryptoAssessment.Builderdescription(String description)The description of the crypto assessment.CryptoAssessment.BuilderdisplayName(String displayName)The display name of the crypto assessment.CryptoAssessment.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CryptoAssessment.Builderid(String id)The OCID of the crypto assessment.CryptoAssessment.BuilderisAssessmentScheduled(Boolean isAssessmentScheduled)Indicates whether scheduled execution is active for this crypto assessment.CryptoAssessment.BuilderissueCount(Integer issueCount)Number of crypto issues detected in this assessment.CryptoAssessment.BuilderlifecycleDetails(String lifecycleDetails)Details about the current lifecycle state of the crypto assessment.CryptoAssessment.BuilderlifecycleState(CryptoAssessment.LifecycleState lifecycleState)The current lifecycle state of the crypto assessment.CryptoAssessment.BuilderpostureCategory(CryptoPostureCategory postureCategory)Overall posture category for the crypto assessment.CryptoAssessment.Builderschedule(String schedule)The schedule used to run the crypto assessment periodically.CryptoAssessment.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.CryptoAssessment.BuildertargetDatabaseGroupId(String targetDatabaseGroupId)The OCID of the target database group.CryptoAssessment.BuildertargetId(String targetId)The OCID of the target database.CryptoAssessment.BuildertargetsWithIssuesCount(Integer targetsWithIssuesCount)Number of assessed targets with one or more crypto issues.CryptoAssessment.BuildertargetType(CryptoAssessment.TargetType targetType)The target type of the crypto assessment.CryptoAssessment.BuildertimeCreated(Date timeCreated)The date and time the crypto assessment was created, in RFC3339 format.CryptoAssessment.BuildertimeLastAssessed(Date timeLastAssessed)The date and time the crypto posture was last assessed, in RFC3339 format.CryptoAssessment.BuildertimeUpdated(Date timeUpdated)The date and time the crypto assessment was last updated, in RFC3339 format.CryptoAssessment.BuildertriggeredBy(CryptoAssessment.TriggeredBy triggeredBy)The actor that created the assessment.CryptoAssessment.Buildertype(CryptoAssessment.Type type)The type of this crypto assessment.
-
-
-
Method Detail
-
id
public CryptoAssessment.Builder id(String id)
The OCID of the crypto assessment.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public CryptoAssessment.Builder displayName(String displayName)
The display name of the crypto assessment.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public CryptoAssessment.Builder description(String description)
The description of the crypto assessment.- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public CryptoAssessment.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the crypto assessment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
timeCreated
public CryptoAssessment.Builder timeCreated(Date timeCreated)
The date and time the crypto assessment was created, in RFC3339 format.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public CryptoAssessment.Builder timeUpdated(Date timeUpdated)
The date and time the crypto assessment was last updated, in RFC3339 format.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
timeLastAssessed
public CryptoAssessment.Builder timeLastAssessed(Date timeLastAssessed)
The date and time the crypto posture was last assessed, in RFC3339 format.- Parameters:
timeLastAssessed- the value to set- Returns:
- this builder
-
lifecycleState
public CryptoAssessment.Builder lifecycleState(CryptoAssessment.LifecycleState lifecycleState)
The current lifecycle state of the crypto assessment.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public CryptoAssessment.Builder lifecycleDetails(String lifecycleDetails)
Details about the current lifecycle state of the crypto assessment.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
type
public CryptoAssessment.Builder type(CryptoAssessment.Type type)
The type of this crypto assessment.- Parameters:
type- the value to set- Returns:
- this builder
-
triggeredBy
public CryptoAssessment.Builder triggeredBy(CryptoAssessment.TriggeredBy triggeredBy)
The actor that created the assessment.- Parameters:
triggeredBy- the value to set- Returns:
- this builder
-
targetType
public CryptoAssessment.Builder targetType(CryptoAssessment.TargetType targetType)
The target type of the crypto assessment.- Parameters:
targetType- the value to set- Returns:
- this builder
-
targetId
public CryptoAssessment.Builder targetId(String targetId)
The OCID of the target database.- Parameters:
targetId- the value to set- Returns:
- this builder
-
targetDatabaseGroupId
public CryptoAssessment.Builder targetDatabaseGroupId(String targetDatabaseGroupId)
The OCID of the target database group.This is returned when targetType is TARGET_DATABASE_GROUP.
- Parameters:
targetDatabaseGroupId- the value to set- Returns:
- this builder
-
databaseVersion
public CryptoAssessment.Builder databaseVersion(String databaseVersion)
The version of the assessed target database.- Parameters:
databaseVersion- the value to set- Returns:
- this builder
-
databaseName
public CryptoAssessment.Builder databaseName(String databaseName)
The name of the assessed target database.- Parameters:
databaseName- the value to set- Returns:
- this builder
-
databaseArchitecture
public CryptoAssessment.Builder databaseArchitecture(String databaseArchitecture)
The architecture of the assessed target database.- Parameters:
databaseArchitecture- the value to set- Returns:
- this builder
-
cryptoProvider
public CryptoAssessment.Builder cryptoProvider(String cryptoProvider)
Cryptographic provider and version information observed on the target.- Parameters:
cryptoProvider- the value to set- Returns:
- this builder
-
postureCategory
public CryptoAssessment.Builder postureCategory(CryptoPostureCategory postureCategory)
Overall posture category for the crypto assessment.- Parameters:
postureCategory- the value to set- Returns:
- this builder
-
schedule
public CryptoAssessment.Builder schedule(String schedule)
The schedule used to run the crypto assessment periodically.The schedule uses the format:
; For v1, the version-specific schedule format is:
Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. Do not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the service generates a default monthly schedule for an assessment created on day 29, 30, or 31 of a month, it uses day 28.
- Parameters:
schedule- the value to set- Returns:
- this builder
-
cryptoPosture
public CryptoAssessment.Builder cryptoPosture(CryptoPosture cryptoPosture)
-
issueCount
public CryptoAssessment.Builder issueCount(Integer issueCount)
Number of crypto issues detected in this assessment.- Parameters:
issueCount- the value to set- Returns:
- this builder
-
targetsWithIssuesCount
public CryptoAssessment.Builder targetsWithIssuesCount(Integer targetsWithIssuesCount)
Number of assessed targets with one or more crypto issues.For a target database assessment, this value is 1 when the target has issues and 0 otherwise. For a target database group assessment, this value is the number of targets in the group that have issues.
- Parameters:
targetsWithIssuesCount- the value to set- Returns:
- this builder
-
isAssessmentScheduled
public CryptoAssessment.Builder isAssessmentScheduled(Boolean isAssessmentScheduled)
Indicates whether scheduled execution is active for this crypto assessment.When false, the schedule value is retained but scheduled execution is paused.
- Parameters:
isAssessmentScheduled- the value to set- Returns:
- this builder
-
freeformTags
public CryptoAssessment.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 CryptoAssessment.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
-
systemTags
public CryptoAssessment.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
-
build
public CryptoAssessment build()
-
copy
public CryptoAssessment.Builder copy(CryptoAssessment model)
-
-