Class CoveredResource
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.CoveredResource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CoveredResource.Builder,CoveredResource>
@Generated("software.amazon.awssdk:codegen") public final class CoveredResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CoveredResource.Builder,CoveredResource>
An object that contains details about a resource covered by Amazon Inspector.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCoveredResource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The Amazon Web Services account ID of the covered resource.static CoveredResource.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastScannedAt()The date and time the resource was last checked for vulnerabilities.StringresourceId()The ID of the covered resource.ResourceScanMetadataresourceMetadata()An object that contains details about the metadata.CoverageResourceTyperesourceType()The type of the covered resource.StringresourceTypeAsString()The type of the covered resource.ScanModescanMode()The scan method that is applied to the instance.StringscanModeAsString()The scan method that is applied to the instance.ScanStatusscanStatus()The status of the scan covering the resource.ScanTypescanType()The Amazon Inspector scan type covering the resource.StringscanTypeAsString()The Amazon Inspector scan type covering the resource.List<SdkField<?>>sdkFields()static Class<? extends CoveredResource.Builder>serializableBuilderClass()CoveredResource.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
-
accountId
public final String accountId()
The Amazon Web Services account ID of the covered resource.
- Returns:
- The Amazon Web Services account ID of the covered resource.
-
lastScannedAt
public final Instant lastScannedAt()
The date and time the resource was last checked for vulnerabilities.
- Returns:
- The date and time the resource was last checked for vulnerabilities.
-
resourceId
public final String resourceId()
The ID of the covered resource.
- Returns:
- The ID of the covered resource.
-
resourceMetadata
public final ResourceScanMetadata resourceMetadata()
An object that contains details about the metadata.
- Returns:
- An object that contains details about the metadata.
-
resourceType
public final CoverageResourceType resourceType()
The type of the covered resource.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnCoverageResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The type of the covered resource.
- See Also:
CoverageResourceType
-
resourceTypeAsString
public final String resourceTypeAsString()
The type of the covered resource.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnCoverageResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The type of the covered resource.
- See Also:
CoverageResourceType
-
scanMode
public final ScanMode scanMode()
The scan method that is applied to the instance.
If the service returns an enum value that is not available in the current SDK version,
scanModewill returnScanMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanModeAsString().- Returns:
- The scan method that is applied to the instance.
- See Also:
ScanMode
-
scanModeAsString
public final String scanModeAsString()
The scan method that is applied to the instance.
If the service returns an enum value that is not available in the current SDK version,
scanModewill returnScanMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanModeAsString().- Returns:
- The scan method that is applied to the instance.
- See Also:
ScanMode
-
scanStatus
public final ScanStatus scanStatus()
The status of the scan covering the resource.
- Returns:
- The status of the scan covering the resource.
-
scanType
public final ScanType scanType()
The Amazon Inspector scan type covering the resource.
If the service returns an enum value that is not available in the current SDK version,
scanTypewill returnScanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanTypeAsString().- Returns:
- The Amazon Inspector scan type covering the resource.
- See Also:
ScanType
-
scanTypeAsString
public final String scanTypeAsString()
The Amazon Inspector scan type covering the resource.
If the service returns an enum value that is not available in the current SDK version,
scanTypewill returnScanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanTypeAsString().- Returns:
- The Amazon Inspector scan type covering the resource.
- See Also:
ScanType
-
toBuilder
public CoveredResource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CoveredResource.Builder,CoveredResource>
-
builder
public static CoveredResource.Builder builder()
-
serializableBuilderClass
public static Class<? extends CoveredResource.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.
-
-