@Generated(value="software.amazon.awssdk:codegen") public final class Problem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Problem.Builder,Problem>
Describes a problem that is detected by correlating observations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Problem.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
affectedResource()
The resource affected by the problem.
|
static Problem.Builder |
builder() |
Instant |
endTime()
The time when the problem ended, in epoch seconds.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<FeedbackKey,FeedbackValue> |
feedback()
Feedback provided by the user about the problem.
|
Map<String,String> |
feedbackAsStrings()
Feedback provided by the user about the problem.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFeedback()
For responses, this returns true if the service returned a value for the Feedback property.
|
int |
hashCode() |
String |
id()
The ID of the problem.
|
String |
insights()
A detailed analysis of the problem using machine learning.
|
Instant |
lastRecurrenceTime()
The last time that the problem reoccurred after its last resolution.
|
Long |
recurringCount()
The number of times that the same problem reoccurred after the first time it was resolved.
|
String |
resourceGroupName()
The name of the resource group affected by the problem.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Problem.Builder> |
serializableBuilderClass() |
SeverityLevel |
severityLevel()
A measure of the level of impact of the problem.
|
String |
severityLevelAsString()
A measure of the level of impact of the problem.
|
Instant |
startTime()
The time when the problem started, in epoch seconds.
|
Status |
status()
The status of the problem.
|
String |
statusAsString()
The status of the problem.
|
String |
title()
The name of the problem.
|
Problem.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID of the problem.
public final String title()
The name of the problem.
public final String insights()
A detailed analysis of the problem using machine learning.
public final Status status()
The status of the problem.
If the service returns an enum value that is not available in the current SDK version, status will
return Status.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
Statuspublic final String statusAsString()
The status of the problem.
If the service returns an enum value that is not available in the current SDK version, status will
return Status.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
Statuspublic final String affectedResource()
The resource affected by the problem.
public final Instant startTime()
The time when the problem started, in epoch seconds.
public final Instant endTime()
The time when the problem ended, in epoch seconds.
public final SeverityLevel severityLevel()
A measure of the level of impact of the problem.
If the service returns an enum value that is not available in the current SDK version, severityLevel
will return SeverityLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityLevelAsString().
SeverityLevelpublic final String severityLevelAsString()
A measure of the level of impact of the problem.
If the service returns an enum value that is not available in the current SDK version, severityLevel
will return SeverityLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityLevelAsString().
SeverityLevelpublic final String resourceGroupName()
The name of the resource group affected by the problem.
public final Map<FeedbackKey,FeedbackValue> feedback()
Feedback provided by the user about the problem.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFeedback() method.
public final boolean hasFeedback()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> feedbackAsStrings()
Feedback provided by the user about the problem.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFeedback() method.
public final Long recurringCount()
The number of times that the same problem reoccurred after the first time it was resolved.
public final Instant lastRecurrenceTime()
The last time that the problem reoccurred after its last resolution.
public Problem.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Problem.Builder,Problem>public static Problem.Builder builder()
public static Class<? extends Problem.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.