Class Problem
- java.lang.Object
-
- software.amazon.awssdk.services.applicationinsights.model.Problem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Problem.Builder,Problem>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProblem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The AWS account ID for the owner of the resource group affected by the problem.StringaffectedResource()The resource affected by the problem.static Problem.Builderbuilder()InstantendTime()The time when the problem ended, in epoch seconds.booleanequals(Object obj)booleanequalsBySdkFields(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)booleanhasFeedback()For responses, this returns true if the service returned a value for the Feedback property.inthashCode()Stringid()The ID of the problem.Stringinsights()A detailed analysis of the problem using machine learning.InstantlastRecurrenceTime()The last time that the problem reoccurred after its last resolution.LongrecurringCount()The number of times that the same problem reoccurred after the first time it was resolved.ResolutionMethodresolutionMethod()Specifies how the problem was resolved.StringresolutionMethodAsString()Specifies how the problem was resolved.StringresourceGroupName()The name of the resource group affected by the problem.List<SdkField<?>>sdkFields()static Class<? extends Problem.Builder>serializableBuilderClass()SeverityLevelseverityLevel()A measure of the level of impact of the problem.StringseverityLevelAsString()A measure of the level of impact of the problem.InstantstartTime()The time when the problem started, in epoch seconds.Statusstatus()The status of the problem.StringstatusAsString()The status of the problem.Stringtitle()The name of the problem.Problem.BuildertoBuilder()StringtoString()Returns a string representation of this object.Visibilityvisibility()Specifies whether or not you can view the problem.StringvisibilityAsString()Specifies whether or not you can view the problem.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The ID of the problem.
- Returns:
- The ID of the problem.
-
title
public final String title()
The name of the problem.
- Returns:
- The name of the problem.
-
insights
public final String insights()
A detailed analysis of the problem using machine learning.
- Returns:
- A detailed analysis of the problem using machine learning.
-
status
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,
statuswill returnStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the problem.
- See Also:
Status
-
statusAsString
public final String statusAsString()
The status of the problem.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the problem.
- See Also:
Status
-
affectedResource
public final String affectedResource()
The resource affected by the problem.
- Returns:
- The resource affected by the problem.
-
startTime
public final Instant startTime()
The time when the problem started, in epoch seconds.
- Returns:
- The time when the problem started, in epoch seconds.
-
endTime
public final Instant endTime()
The time when the problem ended, in epoch seconds.
- Returns:
- The time when the problem ended, in epoch seconds.
-
severityLevel
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,
severityLevelwill 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:
SeverityLevel
-
severityLevelAsString
public 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,
severityLevelwill 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:
SeverityLevel
-
accountId
public final String 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
public final String resourceGroupName()
The name of the resource group affected by the problem.
- Returns:
- The name of the resource group affected by the problem.
-
feedback
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.- 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
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.- Returns:
- Feedback provided by the user about the problem.
-
recurringCount
public final Long 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
public final Instant 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
public final Visibility 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,
visibilitywill 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:
Visibility
-
visibilityAsString
public final String 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,
visibilitywill 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:
Visibility
-
resolutionMethod
public final ResolutionMethod 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,
resolutionMethodwill 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:
ResolutionMethod
-
resolutionMethodAsString
public final String 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,
resolutionMethodwill 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:
ResolutionMethod
-
toBuilder
public Problem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Problem.Builder,Problem>
-
builder
public static Problem.Builder builder()
-
serializableBuilderClass
public static Class<? extends Problem.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-