Package com.oracle.bmc.cloudguard.model
Class ResourceProfile.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.ResourceProfile.Builder
-
- Enclosing class:
- ResourceProfile
public static class ResourceProfile.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceProfile
build()
ResourceProfile.Builder
compartmentId(String compartmentId)
Compartment OCID for the resource profileResourceProfile.Builder
copy(ResourceProfile model)
ResourceProfile.Builder
displayName(String displayName)
Display name for the resource profileResourceProfile.Builder
id(String id)
Unique identifier for the resource profileResourceProfile.Builder
locks(List<ResourceLock> locks)
Locks associated with this resource.ResourceProfile.Builder
peakRiskScore(Double peakRiskScore)
Peak risk score for the resource profileResourceProfile.Builder
problemIds(List<String> problemIds)
List of problems IDs associated with the resource profileResourceProfile.Builder
resourceId(String resourceId)
Unique identifier for the resource associated with the resource profileResourceProfile.Builder
riskLevel(RiskLevel riskLevel)
Risk level associated with resource profileResourceProfile.Builder
riskScore(Double riskScore)
Risk score for the resource profileResourceProfile.Builder
sightingsCount(Integer sightingsCount)
Number of sightings associated with the resource profileResourceProfile.Builder
tactics(List<TacticSummary> tactics)
List of tactic summaries associated with the resource profileResourceProfile.Builder
targetId(String targetId)
Unique target ID for the resource profileResourceProfile.Builder
timeFirstDetected(Date timeFirstDetected)
Time the activities were first detected.ResourceProfile.Builder
timeFirstOccurred(Date timeFirstOccurred)
Time the activities were first performed.ResourceProfile.Builder
timeLastDetected(Date timeLastDetected)
Time the activities were last detected.ResourceProfile.Builder
timeLastOccurred(Date timeLastOccurred)
Time the activities were last performed.ResourceProfile.Builder
timePeakScore(Date timePeakScore)
The date and time for the peak risk score.ResourceProfile.Builder
type(String type)
Resource type for the resource profile
-
-
-
Method Detail
-
sightingsCount
public ResourceProfile.Builder sightingsCount(Integer sightingsCount)
Number of sightings associated with the resource profile- Parameters:
sightingsCount
- the value to set- Returns:
- this builder
-
id
public ResourceProfile.Builder id(String id)
Unique identifier for the resource profile- Parameters:
id
- the value to set- Returns:
- this builder
-
resourceId
public ResourceProfile.Builder resourceId(String resourceId)
Unique identifier for the resource associated with the resource profile- Parameters:
resourceId
- the value to set- Returns:
- this builder
-
displayName
public ResourceProfile.Builder displayName(String displayName)
Display name for the resource profile- Parameters:
displayName
- the value to set- Returns:
- this builder
-
type
public ResourceProfile.Builder type(String type)
Resource type for the resource profile- Parameters:
type
- the value to set- Returns:
- this builder
-
problemIds
public ResourceProfile.Builder problemIds(List<String> problemIds)
List of problems IDs associated with the resource profile- Parameters:
problemIds
- the value to set- Returns:
- this builder
-
compartmentId
public ResourceProfile.Builder compartmentId(String compartmentId)
Compartment OCID for the resource profile- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
targetId
public ResourceProfile.Builder targetId(String targetId)
Unique target ID for the resource profile- Parameters:
targetId
- the value to set- Returns:
- this builder
-
riskScore
public ResourceProfile.Builder riskScore(Double riskScore)
Risk score for the resource profile- Parameters:
riskScore
- the value to set- Returns:
- this builder
-
riskLevel
public ResourceProfile.Builder riskLevel(RiskLevel riskLevel)
Risk level associated with resource profile- Parameters:
riskLevel
- the value to set- Returns:
- this builder
-
peakRiskScore
public ResourceProfile.Builder peakRiskScore(Double peakRiskScore)
Peak risk score for the resource profile- Parameters:
peakRiskScore
- the value to set- Returns:
- this builder
-
timePeakScore
public ResourceProfile.Builder timePeakScore(Date timePeakScore)
The date and time for the peak risk score.Format defined by RFC3339.
- Parameters:
timePeakScore
- the value to set- Returns:
- this builder
-
timeFirstDetected
public ResourceProfile.Builder timeFirstDetected(Date timeFirstDetected)
Time the activities were first detected.Format defined by RFC3339.
- Parameters:
timeFirstDetected
- the value to set- Returns:
- this builder
-
timeLastDetected
public ResourceProfile.Builder timeLastDetected(Date timeLastDetected)
Time the activities were last detected.Format defined by RFC3339.
- Parameters:
timeLastDetected
- the value to set- Returns:
- this builder
-
timeFirstOccurred
public ResourceProfile.Builder timeFirstOccurred(Date timeFirstOccurred)
Time the activities were first performed.Format defined by RFC3339.
- Parameters:
timeFirstOccurred
- the value to set- Returns:
- this builder
-
timeLastOccurred
public ResourceProfile.Builder timeLastOccurred(Date timeLastOccurred)
Time the activities were last performed.Format defined by RFC3339.
- Parameters:
timeLastOccurred
- the value to set- Returns:
- this builder
-
tactics
public ResourceProfile.Builder tactics(List<TacticSummary> tactics)
List of tactic summaries associated with the resource profile- Parameters:
tactics
- the value to set- Returns:
- this builder
-
locks
public ResourceProfile.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks
- the value to set- Returns:
- this builder
-
build
public ResourceProfile build()
-
copy
public ResourceProfile.Builder copy(ResourceProfile model)
-
-