Class PropertyDifference

    • Method Detail

      • propertyPath

        public final String propertyPath()

        The fully-qualified path to the resource property.

        Returns:
        The fully-qualified path to the resource property.
      • expectedValue

        public final String expectedValue()

        The expected property value of the resource property, as defined in the stack template and any values specified as template parameters.

        Returns:
        The expected property value of the resource property, as defined in the stack template and any values specified as template parameters.
      • actualValue

        public final String actualValue()

        The actual property value of the resource property.

        Returns:
        The actual property value of the resource property.
      • differenceType

        public final DifferenceType differenceType()

        The type of property difference.

        • ADD: A value has been added to a resource property that's an array or list data type.

        • REMOVE: The property has been removed from the current resource configuration.

        • NOT_EQUAL: The current property value differs from its expected value (as defined in the stack template and any values specified as template parameters).

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

        Returns:
        The type of property difference.

        • ADD: A value has been added to a resource property that's an array or list data type.

        • REMOVE: The property has been removed from the current resource configuration.

        • NOT_EQUAL: The current property value differs from its expected value (as defined in the stack template and any values specified as template parameters).

        See Also:
        DifferenceType
      • differenceTypeAsString

        public final String differenceTypeAsString()

        The type of property difference.

        • ADD: A value has been added to a resource property that's an array or list data type.

        • REMOVE: The property has been removed from the current resource configuration.

        • NOT_EQUAL: The current property value differs from its expected value (as defined in the stack template and any values specified as template parameters).

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

        Returns:
        The type of property difference.

        • ADD: A value has been added to a resource property that's an array or list data type.

        • REMOVE: The property has been removed from the current resource configuration.

        • NOT_EQUAL: The current property value differs from its expected value (as defined in the stack template and any values specified as template parameters).

        See Also:
        DifferenceType
      • 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)