@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EcrRescanDurationState extends Object implements Serializable, Cloneable, StructuredPojo
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 inactive and all associated findings are scheduled for closure.
| Constructor and Description |
|---|
EcrRescanDurationState() |
| Modifier and Type | Method and Description |
|---|---|
EcrRescanDurationState |
clone() |
boolean |
equals(Object obj) |
String |
getPullDateRescanDuration()
The rescan duration configured for image pull date.
|
String |
getRescanDuration()
The rescan duration configured for image push date.
|
String |
getStatus()
The status of changes to the ECR automated re-scan duration.
|
Date |
getUpdatedAt()
A timestamp representing when the last time the ECR scan duration setting was changed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPullDateRescanDuration(String pullDateRescanDuration)
The rescan duration configured for image pull date.
|
void |
setRescanDuration(String rescanDuration)
The rescan duration configured for image push date.
|
void |
setStatus(String status)
The status of changes to the ECR automated re-scan duration.
|
void |
setUpdatedAt(Date updatedAt)
A timestamp representing when the last time the ECR scan duration setting was changed.
|
String |
toString()
Returns a string representation of this object.
|
EcrRescanDurationState |
withPullDateRescanDuration(EcrPullDateRescanDuration pullDateRescanDuration)
The rescan duration configured for image pull date.
|
EcrRescanDurationState |
withPullDateRescanDuration(String pullDateRescanDuration)
The rescan duration configured for image pull date.
|
EcrRescanDurationState |
withRescanDuration(EcrRescanDuration rescanDuration)
The rescan duration configured for image push date.
|
EcrRescanDurationState |
withRescanDuration(String rescanDuration)
The rescan duration configured for image push date.
|
EcrRescanDurationState |
withStatus(EcrRescanDurationStatus status)
The status of changes to the ECR automated re-scan duration.
|
EcrRescanDurationState |
withStatus(String status)
The status of changes to the ECR automated re-scan duration.
|
EcrRescanDurationState |
withUpdatedAt(Date updatedAt)
A timestamp representing when the last time the ECR scan duration setting was changed.
|
public void setPullDateRescanDuration(String pullDateRescanDuration)
The rescan duration configured for image pull date.
pullDateRescanDuration - The rescan duration configured for image pull date.EcrPullDateRescanDurationpublic String getPullDateRescanDuration()
The rescan duration configured for image pull date.
EcrPullDateRescanDurationpublic EcrRescanDurationState withPullDateRescanDuration(String pullDateRescanDuration)
The rescan duration configured for image pull date.
pullDateRescanDuration - The rescan duration configured for image pull date.EcrPullDateRescanDurationpublic EcrRescanDurationState withPullDateRescanDuration(EcrPullDateRescanDuration pullDateRescanDuration)
The rescan duration configured for image pull date.
pullDateRescanDuration - The rescan duration configured for image pull date.EcrPullDateRescanDurationpublic void setRescanDuration(String rescanDuration)
The rescan duration configured for image push date.
</p>
rescanDuration - The rescan duration configured for image push date.
</p> @see EcrRescanDurationpublic String getRescanDuration()
The rescan duration configured for image push date.
</p>
</p> @see EcrRescanDurationpublic EcrRescanDurationState withRescanDuration(String rescanDuration)
The rescan duration configured for image push date.
</p>
rescanDuration - The rescan duration configured for image push date.
</p> @return Returns a reference to this object so that method calls can be chained
together. @see EcrRescanDurationpublic EcrRescanDurationState withRescanDuration(EcrRescanDuration rescanDuration)
The rescan duration configured for image push date.
</p>
rescanDuration - The rescan duration configured for image push date.
</p> @return Returns a reference to this object so that method calls can be chained
together. @see EcrRescanDurationpublic void setStatus(String status)
The status of changes to the ECR automated re-scan duration.
status - The status of changes to the ECR automated re-scan duration.EcrRescanDurationStatuspublic String getStatus()
The status of changes to the ECR automated re-scan duration.
EcrRescanDurationStatuspublic EcrRescanDurationState withStatus(String status)
The status of changes to the ECR automated re-scan duration.
status - The status of changes to the ECR automated re-scan duration.EcrRescanDurationStatuspublic EcrRescanDurationState withStatus(EcrRescanDurationStatus status)
The status of changes to the ECR automated re-scan duration.
status - The status of changes to the ECR automated re-scan duration.EcrRescanDurationStatuspublic void setUpdatedAt(Date updatedAt)
A timestamp representing when the last time the ECR scan duration setting was changed.
updatedAt - A timestamp representing when the last time the ECR scan duration setting was changed.public Date getUpdatedAt()
A timestamp representing when the last time the ECR scan duration setting was changed.
public EcrRescanDurationState withUpdatedAt(Date updatedAt)
A timestamp representing when the last time the ECR scan duration setting was changed.
updatedAt - A timestamp representing when the last time the ECR scan duration setting was changed.public String toString()
toString in class ObjectObject.toString()public EcrRescanDurationState clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.