Class Problem
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Problem.Builder,
Problem>
Describes a problem that is detected by correlating observations.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
The AWS account ID for the owner of the resource group affected by the problem.final String
The resource affected by the problem.static Problem.Builder
builder()
final Instant
endTime()
The time when the problem ended, in epoch seconds.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Map
<FeedbackKey, FeedbackValue> feedback()
Feedback provided by the user about the problem.Feedback provided by the user about the problem.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the Feedback property.final int
hashCode()
final String
id()
The ID of the problem.final String
insights()
A detailed analysis of the problem using machine learning.final Instant
The last time that the problem reoccurred after its last resolution.final Long
The number of times that the same problem reoccurred after the first time it was resolved.final ResolutionMethod
Specifies how the problem was resolved.final String
Specifies how the problem was resolved.final String
The name of the resource group affected by the problem.static Class
<? extends Problem.Builder> final SeverityLevel
A measure of the level of impact of the problem.final String
A measure of the level of impact of the problem.final Instant
The time when the problem started, in epoch seconds.final Status
status()
The status of the problem.final String
The status of the problem.final String
title()
The name of the problem.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Visibility
Specifies whether or not you can view the problem.final String
Specifies whether or not you can view the problem.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID of the problem.
- Returns:
- The ID of the problem.
-
title
The name of the problem.
- Returns:
- The name of the problem.
-
insights
A detailed analysis of the problem using machine learning.
- Returns:
- A detailed analysis of the problem using machine learning.
-
status
The status of the problem.
If the service returns an enum value that is not available in the current SDK version,
status
will returnStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the problem.
- See Also:
-
statusAsString
The status of the problem.
If the service returns an enum value that is not available in the current SDK version,
status
will returnStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the problem.
- See Also:
-
affectedResource
The resource affected by the problem.
- Returns:
- The resource affected by the problem.
-
startTime
The time when the problem started, in epoch seconds.
- Returns:
- The time when the problem started, in epoch seconds.
-
endTime
The time when the problem ended, in epoch seconds.
- Returns:
- The time when the problem ended, in epoch seconds.
-
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 returnSeverityLevel.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromseverityLevelAsString()
.- Returns:
- A measure of the level of impact of the problem.
- See Also:
-
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 returnSeverityLevel.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromseverityLevelAsString()
.- Returns:
- A measure of the level of impact of the problem.
- See Also:
-
accountId
The AWS account ID for the owner of the resource group affected by the problem.
- Returns:
- The AWS account ID for the owner of the resource group affected by the problem.
-
resourceGroupName
The name of the resource group affected by the problem.
- Returns:
- The name of the resource group affected by the problem.
-
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.- Returns:
- Feedback provided by the user about the problem.
-
hasFeedback
public final boolean hasFeedback()For responses, this returns true if the service returned a value for the Feedback property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- Feedback provided by the user about the problem.
-
recurringCount
The number of times that the same problem reoccurred after the first time it was resolved.
- Returns:
- The number of times that the same problem reoccurred after the first time it was resolved.
-
lastRecurrenceTime
The last time that the problem reoccurred after its last resolution.
- Returns:
- The last time that the problem reoccurred after its last resolution.
-
visibility
Specifies whether or not you can view the problem. Updates to ignored problems do not generate notifications.
If the service returns an enum value that is not available in the current SDK version,
visibility
will returnVisibility.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromvisibilityAsString()
.- Returns:
- Specifies whether or not you can view the problem. Updates to ignored problems do not generate notifications.
- See Also:
-
visibilityAsString
Specifies whether or not you can view the problem. Updates to ignored problems do not generate notifications.
If the service returns an enum value that is not available in the current SDK version,
visibility
will returnVisibility.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromvisibilityAsString()
.- Returns:
- Specifies whether or not you can view the problem. Updates to ignored problems do not generate notifications.
- See Also:
-
resolutionMethod
Specifies how the problem was resolved. If the value is
AUTOMATIC
, the system resolved the problem. If the value isMANUAL
, the user resolved the problem. If the value isUNRESOLVED
, then the problem is not resolved.If the service returns an enum value that is not available in the current SDK version,
resolutionMethod
will returnResolutionMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromresolutionMethodAsString()
.- Returns:
- Specifies how the problem was resolved. If the value is
AUTOMATIC
, the system resolved the problem. If the value isMANUAL
, the user resolved the problem. If the value isUNRESOLVED
, then the problem is not resolved. - See Also:
-
resolutionMethodAsString
Specifies how the problem was resolved. If the value is
AUTOMATIC
, the system resolved the problem. If the value isMANUAL
, the user resolved the problem. If the value isUNRESOLVED
, then the problem is not resolved.If the service returns an enum value that is not available in the current SDK version,
resolutionMethod
will returnResolutionMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromresolutionMethodAsString()
.- Returns:
- Specifies how the problem was resolved. If the value is
AUTOMATIC
, the system resolved the problem. If the value isMANUAL
, the user resolved the problem. If the value isUNRESOLVED
, then the problem is not resolved. - See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Problem.Builder,
Problem> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-