Class Problem

    • 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, 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:
        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, 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:
        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.
      • 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:
        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, 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:
        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 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:
        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 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:
        ResolutionMethod
      • 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
      • 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)