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 your ECR re-scan duration settings. The ECR 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 duration configured for image pull date, and the duration configured for image pull date, the monitoring state of that image becomes
inactiveand all associated findings are scheduled for closure.- 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()EcrPullDateRescanDurationpullDateRescanDuration()The rescan duration configured for image pull date.StringpullDateRescanDurationAsString()The rescan duration configured for image pull date.EcrRescanDurationrescanDuration()The rescan duration configured for image push date.StringrescanDurationAsString()The rescan duration configured for image push date.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
-
pullDateRescanDuration
public final EcrPullDateRescanDuration pullDateRescanDuration()
The rescan duration configured for image pull date.
If the service returns an enum value that is not available in the current SDK version,
pullDateRescanDurationwill returnEcrPullDateRescanDuration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompullDateRescanDurationAsString().- Returns:
- The rescan duration configured for image pull date.
- See Also:
EcrPullDateRescanDuration
-
pullDateRescanDurationAsString
public final String pullDateRescanDurationAsString()
The rescan duration configured for image pull date.
If the service returns an enum value that is not available in the current SDK version,
pullDateRescanDurationwill returnEcrPullDateRescanDuration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompullDateRescanDurationAsString().- Returns:
- The rescan duration configured for image pull date.
- See Also:
EcrPullDateRescanDuration
-
rescanDuration
public final EcrRescanDuration rescanDuration()
The rescan duration configured for image push date.
</p>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 rescan duration configured for image push date.
</p> - See Also:
EcrRescanDuration
-
rescanDurationAsString
public final String rescanDurationAsString()
The rescan duration configured for image push date.
</p>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 rescan duration configured for image push date.
</p> - 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.
-
-