Interface GetLogAnomalyDetectorResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<GetLogAnomalyDetectorResponse.Builder,GetLogAnomalyDetectorResponse>
,SdkBuilder<GetLogAnomalyDetectorResponse.Builder,GetLogAnomalyDetectorResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetLogAnomalyDetectorResponse
public static interface GetLogAnomalyDetectorResponse.Builder extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<GetLogAnomalyDetectorResponse.Builder,GetLogAnomalyDetectorResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetLogAnomalyDetectorResponse.Builder
anomalyDetectorStatus(String anomalyDetectorStatus)
Specifies whether the anomaly detector is currently active.GetLogAnomalyDetectorResponse.Builder
anomalyDetectorStatus(AnomalyDetectorStatus anomalyDetectorStatus)
Specifies whether the anomaly detector is currently active.GetLogAnomalyDetectorResponse.Builder
anomalyVisibilityTime(Long anomalyVisibilityTime)
The number of days used as the life cycle of anomalies.GetLogAnomalyDetectorResponse.Builder
creationTimeStamp(Long creationTimeStamp)
The date and time when this anomaly detector was created.GetLogAnomalyDetectorResponse.Builder
detectorName(String detectorName)
The name of the log anomaly detectorGetLogAnomalyDetectorResponse.Builder
evaluationFrequency(String evaluationFrequency)
Specifies how often the anomaly detector runs and look for anomalies.GetLogAnomalyDetectorResponse.Builder
evaluationFrequency(EvaluationFrequency evaluationFrequency)
Specifies how often the anomaly detector runs and look for anomalies.GetLogAnomalyDetectorResponse.Builder
filterPattern(String filterPattern)
Sets the value of the FilterPattern property for this object.GetLogAnomalyDetectorResponse.Builder
kmsKeyId(String kmsKeyId)
The ID of the KMS key assigned to this anomaly detector, if any.GetLogAnomalyDetectorResponse.Builder
lastModifiedTimeStamp(Long lastModifiedTimeStamp)
The date and time when this anomaly detector was most recently modified.GetLogAnomalyDetectorResponse.Builder
logGroupArnList(String... logGroupArnList)
An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.GetLogAnomalyDetectorResponse.Builder
logGroupArnList(Collection<String> logGroupArnList)
An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.-
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
detectorName
GetLogAnomalyDetectorResponse.Builder detectorName(String detectorName)
The name of the log anomaly detector
- Parameters:
detectorName
- The name of the log anomaly detector- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupArnList
GetLogAnomalyDetectorResponse.Builder logGroupArnList(Collection<String> logGroupArnList)
An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.
- Parameters:
logGroupArnList
- An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupArnList
GetLogAnomalyDetectorResponse.Builder logGroupArnList(String... logGroupArnList)
An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.
- Parameters:
logGroupArnList
- An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationFrequency
GetLogAnomalyDetectorResponse.Builder evaluationFrequency(String evaluationFrequency)
Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting
evaluationFrequency
toFIFTEEN_MIN
might be appropriate.- Parameters:
evaluationFrequency
- Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then settingevaluationFrequency
toFIFTEEN_MIN
might be appropriate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EvaluationFrequency
,EvaluationFrequency
-
evaluationFrequency
GetLogAnomalyDetectorResponse.Builder evaluationFrequency(EvaluationFrequency evaluationFrequency)
Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting
evaluationFrequency
toFIFTEEN_MIN
might be appropriate.- Parameters:
evaluationFrequency
- Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then settingevaluationFrequency
toFIFTEEN_MIN
might be appropriate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EvaluationFrequency
,EvaluationFrequency
-
filterPattern
GetLogAnomalyDetectorResponse.Builder filterPattern(String filterPattern)
Sets the value of the FilterPattern property for this object.- Parameters:
filterPattern
- The new value for the FilterPattern property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectorStatus
GetLogAnomalyDetectorResponse.Builder anomalyDetectorStatus(String anomalyDetectorStatus)
Specifies whether the anomaly detector is currently active. To change its status, use the
enabled
parameter in the UpdateLogAnomalyDetector operation.- Parameters:
anomalyDetectorStatus
- Specifies whether the anomaly detector is currently active. To change its status, use theenabled
parameter in the UpdateLogAnomalyDetector operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnomalyDetectorStatus
,AnomalyDetectorStatus
-
anomalyDetectorStatus
GetLogAnomalyDetectorResponse.Builder anomalyDetectorStatus(AnomalyDetectorStatus anomalyDetectorStatus)
Specifies whether the anomaly detector is currently active. To change its status, use the
enabled
parameter in the UpdateLogAnomalyDetector operation.- Parameters:
anomalyDetectorStatus
- Specifies whether the anomaly detector is currently active. To change its status, use theenabled
parameter in the UpdateLogAnomalyDetector operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnomalyDetectorStatus
,AnomalyDetectorStatus
-
kmsKeyId
GetLogAnomalyDetectorResponse.Builder kmsKeyId(String kmsKeyId)
The ID of the KMS key assigned to this anomaly detector, if any.
- Parameters:
kmsKeyId
- The ID of the KMS key assigned to this anomaly detector, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTimeStamp
GetLogAnomalyDetectorResponse.Builder creationTimeStamp(Long creationTimeStamp)
The date and time when this anomaly detector was created.
- Parameters:
creationTimeStamp
- The date and time when this anomaly detector was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTimeStamp
GetLogAnomalyDetectorResponse.Builder lastModifiedTimeStamp(Long lastModifiedTimeStamp)
The date and time when this anomaly detector was most recently modified.
- Parameters:
lastModifiedTimeStamp
- The date and time when this anomaly detector was most recently modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyVisibilityTime
GetLogAnomalyDetectorResponse.Builder anomalyVisibilityTime(Long anomalyVisibilityTime)
The number of days used as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal.
- Parameters:
anomalyVisibilityTime
- The number of days used as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-