@Generated(value="software.amazon.awssdk:codegen") public final class ComplianceDrift extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComplianceDrift.Builder,ComplianceDrift>
Indicates the compliance drifts (recovery time objective (RTO) and recovery point objective (RPO)) that were detected for an assessed entity.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ComplianceDrift.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
actualReferenceId()
Assessment identifier that is associated with this drift item.
|
Map<DisruptionType,DisruptionCompliance> |
actualValue()
Actual compliance value of the entity.
|
Map<String,DisruptionCompliance> |
actualValueAsStrings()
Actual compliance value of the entity.
|
String |
appId()
Identifier of your application.
|
String |
appVersion()
Published version of your application on which drift was detected.
|
static ComplianceDrift.Builder |
builder() |
DifferenceType |
diffType()
Difference type between actual and expected recovery point objective (RPO) and recovery time objective (RTO)
values.
|
String |
diffTypeAsString()
Difference type between actual and expected recovery point objective (RPO) and recovery time objective (RTO)
values.
|
DriftType |
driftType()
The type of drift detected.
|
String |
driftTypeAsString()
The type of drift detected.
|
String |
entityId()
Identifier of an entity in which drift was detected.
|
String |
entityType()
The type of entity in which drift was detected.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
expectedReferenceId()
Assessment identifier of a previous assessment of the same application version.
|
Map<DisruptionType,DisruptionCompliance> |
expectedValue()
The expected compliance value of an entity.
|
Map<String,DisruptionCompliance> |
expectedValueAsStrings()
The expected compliance value of an entity.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasActualValue()
For responses, this returns true if the service returned a value for the ActualValue property.
|
boolean |
hasExpectedValue()
For responses, this returns true if the service returned a value for the ExpectedValue property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ComplianceDrift.Builder> |
serializableBuilderClass() |
ComplianceDrift.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String actualReferenceId()
Assessment identifier that is associated with this drift item.
public final Map<DisruptionType,DisruptionCompliance> actualValue()
Actual compliance value of the entity.
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 hasActualValue() method.
public final boolean hasActualValue()
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.public final Map<String,DisruptionCompliance> actualValueAsStrings()
Actual compliance value of the entity.
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 hasActualValue() method.
public final String appId()
Identifier of your application.
public final String appVersion()
Published version of your application on which drift was detected.
public final DifferenceType diffType()
Difference type between actual and expected recovery point objective (RPO) and recovery time objective (RTO) values. Currently, Resilience Hub supports only NotEqual difference type.
If the service returns an enum value that is not available in the current SDK version, diffType will
return DifferenceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
diffTypeAsString().
DifferenceTypepublic final String diffTypeAsString()
Difference type between actual and expected recovery point objective (RPO) and recovery time objective (RTO) values. Currently, Resilience Hub supports only NotEqual difference type.
If the service returns an enum value that is not available in the current SDK version, diffType will
return DifferenceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
diffTypeAsString().
DifferenceTypepublic final DriftType driftType()
The type of drift detected. Currently, Resilience Hub supports only ApplicationCompliance drift type.
If the service returns an enum value that is not available in the current SDK version, driftType will
return DriftType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
driftTypeAsString().
DriftTypepublic final String driftTypeAsString()
The type of drift detected. Currently, Resilience Hub supports only ApplicationCompliance drift type.
If the service returns an enum value that is not available in the current SDK version, driftType will
return DriftType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
driftTypeAsString().
DriftTypepublic final String entityId()
Identifier of an entity in which drift was detected. For compliance drift, the entity ID can be either application ID or the AppComponent ID.
public final String entityType()
The type of entity in which drift was detected. For compliance drifts, Resilience Hub supports
AWS::ResilienceHub::AppComponent and AWS::ResilienceHub::Application.
AWS::ResilienceHub::AppComponent and AWS::ResilienceHub::Application.public final String expectedReferenceId()
Assessment identifier of a previous assessment of the same application version. Resilience Hub uses the previous assessment (associated with the reference identifier) to compare the compliance with the current assessment to identify drifts.
public final Map<DisruptionType,DisruptionCompliance> expectedValue()
The expected compliance value of an entity.
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 hasExpectedValue() method.
public final boolean hasExpectedValue()
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.public final Map<String,DisruptionCompliance> expectedValueAsStrings()
The expected compliance value of an entity.
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 hasExpectedValue() method.
public ComplianceDrift.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ComplianceDrift.Builder,ComplianceDrift>public static ComplianceDrift.Builder builder()
public static Class<? extends ComplianceDrift.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.