Class PropertyDifference
- java.lang.Object
-
- software.amazon.awssdk.services.cloudformation.model.PropertyDifference
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PropertyDifference.Builder,PropertyDifference>
@Generated("software.amazon.awssdk:codegen") public final class PropertyDifference extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PropertyDifference.Builder,PropertyDifference>
Information about a resource property whose actual value differs from its expected value, as defined in the stack template and any values specified as template parameters. These will be present only for resources whose
StackResourceDriftStatusisMODIFIED. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePropertyDifference.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactualValue()The actual property value of the resource property.static PropertyDifference.Builderbuilder()DifferenceTypedifferenceType()The type of property difference.StringdifferenceTypeAsString()The type of property difference.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringexpectedValue()The expected property value of the resource property, as defined in the stack template and any values specified as template parameters.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpropertyPath()The fully-qualified path to the resource property.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PropertyDifference.Builder>serializableBuilderClass()PropertyDifference.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
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,
differenceTypewill returnDifferenceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdifferenceTypeAsString().- 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,
differenceTypewill returnDifferenceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdifferenceTypeAsString().- 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
-
-
toBuilder
public PropertyDifference.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PropertyDifference.Builder,PropertyDifference>
-
builder
public static PropertyDifference.Builder builder()
-
serializableBuilderClass
public static Class<? extends PropertyDifference.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-