Class EcrRescanDurationState
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.EcrRescanDurationState
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EcrRescanDurationState.Builder,EcrRescanDurationState>
@Generated("software.amazon.awssdk:codegen") public final class EcrRescanDurationState extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EcrRescanDurationState.Builder,EcrRescanDurationState>
Details about the state of any changes to the ECR automated re-scan duration setting.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEcrRescanDurationState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EcrRescanDurationState.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()EcrRescanDurationrescanDuration()The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector.StringrescanDurationAsString()The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector.List<SdkField<?>>sdkFields()static Class<? extends EcrRescanDurationState.Builder>serializableBuilderClass()EcrRescanDurationStatusstatus()The status of changes to the ECR automated re-scan duration.StringstatusAsString()The status of changes to the ECR automated re-scan duration.EcrRescanDurationState.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()A timestamp representing when the last time the ECR scan duration setting was changed.-
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
-
rescanDuration
public final EcrRescanDuration rescanDuration()
The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days since an image was last pushed exceeds the automated re-scan duration the monitoring state of that image becomes
inactiveand all associated findings are scheduled for closure.If the service returns an enum value that is not available in the current SDK version,
rescanDurationwill returnEcrRescanDuration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrescanDurationAsString().- Returns:
- The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon
Inspector. When the number of days since an image was last pushed exceeds the automated re-scan duration
the monitoring state of that image becomes
inactiveand all associated findings are scheduled for closure. - See Also:
EcrRescanDuration
-
rescanDurationAsString
public final String rescanDurationAsString()
The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days since an image was last pushed exceeds the automated re-scan duration the monitoring state of that image becomes
inactiveand all associated findings are scheduled for closure.If the service returns an enum value that is not available in the current SDK version,
rescanDurationwill returnEcrRescanDuration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrescanDurationAsString().- Returns:
- The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon
Inspector. When the number of days since an image was last pushed exceeds the automated re-scan duration
the monitoring state of that image becomes
inactiveand all associated findings are scheduled for closure. - See Also:
EcrRescanDuration
-
status
public final EcrRescanDurationStatus status()
The status of changes to the ECR automated re-scan duration.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnEcrRescanDurationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of changes to the ECR automated re-scan duration.
- See Also:
EcrRescanDurationStatus
-
statusAsString
public final String statusAsString()
The status of changes to the ECR automated re-scan duration.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnEcrRescanDurationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of changes to the ECR automated re-scan duration.
- See Also:
EcrRescanDurationStatus
-
updatedAt
public final Instant updatedAt()
A timestamp representing when the last time the ECR scan duration setting was changed.
- Returns:
- A timestamp representing when the last time the ECR scan duration setting was changed.
-
toBuilder
public EcrRescanDurationState.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EcrRescanDurationState.Builder,EcrRescanDurationState>
-
builder
public static EcrRescanDurationState.Builder builder()
-
serializableBuilderClass
public static Class<? extends EcrRescanDurationState.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.
-
-