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:
  • Method Details

    • 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, status will return Status.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the problem.
      See Also:
    • 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, status will return Status.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the problem.
      See Also:
    • 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, severityLevel will return SeverityLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from severityLevelAsString().

      Returns:
      A measure of the level of impact of the problem.
      See Also:
    • 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, severityLevel will return SeverityLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from severityLevelAsString().

      Returns:
      A measure of the level of impact of the problem.
      See Also:
    • 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 the 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.
    • 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, visibility will return Visibility.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from visibilityAsString().

      Returns:
      Specifies whether or not you can view the problem. Updates to ignored problems do not generate notifications.
      See Also:
    • 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, visibility will return Visibility.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from visibilityAsString().

      Returns:
      Specifies whether or not you can view the problem. Updates to ignored problems do not generate notifications.
      See Also:
    • resolutionMethod

      public final ResolutionMethod resolutionMethod()

      Specifies how the problem was resolved. If the value is AUTOMATIC, the system resolved the problem. If the value is MANUAL, the user resolved the problem. If the value is UNRESOLVED, then the problem is not resolved.

      If the service returns an enum value that is not available in the current SDK version, resolutionMethod will return ResolutionMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from resolutionMethodAsString().

      Returns:
      Specifies how the problem was resolved. If the value is AUTOMATIC, the system resolved the problem. If the value is MANUAL, the user resolved the problem. If the value is UNRESOLVED, then the problem is not resolved.
      See Also:
    • resolutionMethodAsString

      public final String resolutionMethodAsString()

      Specifies how the problem was resolved. If the value is AUTOMATIC, the system resolved the problem. If the value is MANUAL, the user resolved the problem. If the value is UNRESOLVED, then the problem is not resolved.

      If the service returns an enum value that is not available in the current SDK version, resolutionMethod will return ResolutionMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from resolutionMethodAsString().

      Returns:
      Specifies how the problem was resolved. If the value is AUTOMATIC, the system resolved the problem. If the value is MANUAL, the user resolved the problem. If the value is UNRESOLVED, then the problem is not resolved.
      See Also:
    • toBuilder

      public Problem.Builder 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 interface ToCopyableBuilder<Problem.Builder,Problem>
      Returns:
      a builder for type T
    • builder

      public static Problem.Builder builder()
    • serializableBuilderClass

      public static Class<? extends Problem.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.