public static class DetectorRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DetectorRule |
build() |
DetectorRule.Builder |
candidateResponderRules(List<CandidateResponderRule> candidateResponderRules)
List of responder rules that could be used to remediate a problem triggered by this
detector rule
|
DetectorRule.Builder |
copy(DetectorRule model) |
DetectorRule.Builder |
description(String description)
Description for the detector rule
|
DetectorRule.Builder |
detector(DetectorEnum detector)
Detector recipe for the rule
|
DetectorRule.Builder |
detectorDetails(DetectorDetails detectorDetails) |
DetectorRule.Builder |
displayName(String displayName)
Display name for the detector rule
|
DetectorRule.Builder |
id(String id)
The unique identifier of the detector rule
|
DetectorRule.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.
|
DetectorRule.Builder |
lifecycleState(LifecycleState lifecycleState)
The current state of the detector rule
|
DetectorRule.Builder |
locks(List<ResourceLock> locks)
Locks associated with this resource.
|
DetectorRule.Builder |
managedListTypes(List<DetectorRule.ManagedListTypes> managedListTypes)
List of managed list types related to this rule
|
DetectorRule.Builder |
recommendation(String recommendation)
Recommendation for the detector rule
|
DetectorRule.Builder |
resourceType(String resourceType)
Resource type of the configuration to which the rule is applied
|
DetectorRule.Builder |
serviceType(String serviceType)
Service type of the configuration to which the rule is applied
|
DetectorRule.Builder |
timeCreated(Date timeCreated)
The date and time the detector rule was created.
|
DetectorRule.Builder |
timeUpdated(Date timeUpdated)
The date and time the detector rule was updated.
|
public DetectorRule.Builder id(String id)
The unique identifier of the detector rule
id
- the value to setpublic DetectorRule.Builder displayName(String displayName)
Display name for the detector rule
displayName
- the value to setpublic DetectorRule.Builder description(String description)
Description for the detector rule
description
- the value to setpublic DetectorRule.Builder recommendation(String recommendation)
Recommendation for the detector rule
recommendation
- the value to setpublic DetectorRule.Builder detector(DetectorEnum detector)
Detector recipe for the rule
detector
- the value to setpublic DetectorRule.Builder serviceType(String serviceType)
Service type of the configuration to which the rule is applied
serviceType
- the value to setpublic DetectorRule.Builder resourceType(String resourceType)
Resource type of the configuration to which the rule is applied
resourceType
- the value to setpublic DetectorRule.Builder detectorDetails(DetectorDetails detectorDetails)
public DetectorRule.Builder managedListTypes(List<DetectorRule.ManagedListTypes> managedListTypes)
List of managed list types related to this rule
managedListTypes
- the value to setpublic DetectorRule.Builder candidateResponderRules(List<CandidateResponderRule> candidateResponderRules)
List of responder rules that could be used to remediate a problem triggered by this detector rule
candidateResponderRules
- the value to setpublic DetectorRule.Builder timeCreated(Date timeCreated)
The date and time the detector rule was created. Format defined by RFC3339.
timeCreated
- the value to setpublic DetectorRule.Builder timeUpdated(Date timeUpdated)
The date and time the detector rule was updated. Format defined by RFC3339.
timeUpdated
- the value to setpublic DetectorRule.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the detector rule
lifecycleState
- the value to setpublic DetectorRule.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
lifecycleDetails
- the value to setpublic DetectorRule.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.
locks
- the value to setpublic DetectorRule build()
public DetectorRule.Builder copy(DetectorRule model)
Copyright © 2016–2024. All rights reserved.