Class CoverageFilterCriteria
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.CoverageFilterCriteria
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CoverageFilterCriteria.Builder,CoverageFilterCriteria>
@Generated("software.amazon.awssdk:codegen") public final class CoverageFilterCriteria extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CoverageFilterCriteria.Builder,CoverageFilterCriteria>
A structure that identifies filter criteria for
GetCoverageStatistics.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCoverageFilterCriteria.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CoverageStringFilter>accountId()An array of Amazon Web Services account IDs to return coverage statistics for.static CoverageFilterCriteria.Builderbuilder()List<CoverageMapFilter>ec2InstanceTags()The Amazon EC2 instance tags to filter on.List<CoverageStringFilter>ecrImageTags()The Amazon ECR image tags to filter on.List<CoverageStringFilter>ecrRepositoryName()The Amazon ECR repository name to filter on.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAccountId()For responses, this returns true if the service returned a value for the AccountId property.booleanhasEc2InstanceTags()For responses, this returns true if the service returned a value for the Ec2InstanceTags property.booleanhasEcrImageTags()For responses, this returns true if the service returned a value for the EcrImageTags property.booleanhasEcrRepositoryName()For responses, this returns true if the service returned a value for the EcrRepositoryName property.inthashCode()booleanhasLambdaFunctionName()For responses, this returns true if the service returned a value for the LambdaFunctionName property.booleanhasLambdaFunctionRuntime()For responses, this returns true if the service returned a value for the LambdaFunctionRuntime property.booleanhasLambdaFunctionTags()For responses, this returns true if the service returned a value for the LambdaFunctionTags property.booleanhasLastScannedAt()For responses, this returns true if the service returned a value for the LastScannedAt property.booleanhasResourceId()For responses, this returns true if the service returned a value for the ResourceId property.booleanhasResourceType()For responses, this returns true if the service returned a value for the ResourceType property.booleanhasScanStatusCode()For responses, this returns true if the service returned a value for the ScanStatusCode property.booleanhasScanStatusReason()For responses, this returns true if the service returned a value for the ScanStatusReason property.booleanhasScanType()For responses, this returns true if the service returned a value for the ScanType property.List<CoverageStringFilter>lambdaFunctionName()Returns coverage statistics for AWS Lambda functions filtered by function names.List<CoverageStringFilter>lambdaFunctionRuntime()Returns coverage statistics for AWS Lambda functions filtered by runtime.List<CoverageMapFilter>lambdaFunctionTags()Returns coverage statistics for AWS Lambda functions filtered by tag.List<CoverageDateFilter>lastScannedAt()Filters Amazon Web Services resources based on whether Amazon Inspector has checked them for vulnerabilities within the specified time range.List<CoverageStringFilter>resourceId()An array of Amazon Web Services resource IDs to return coverage statistics for.List<CoverageStringFilter>resourceType()An array of Amazon Web Services resource types to return coverage statistics for.List<CoverageStringFilter>scanStatusCode()The scan status code to filter on.List<CoverageStringFilter>scanStatusReason()The scan status reason to filter on.List<CoverageStringFilter>scanType()An array of Amazon Inspector scan types to return coverage statistics for.List<SdkField<?>>sdkFields()static Class<? extends CoverageFilterCriteria.Builder>serializableBuilderClass()CoverageFilterCriteria.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
-
hasAccountId
public final boolean hasAccountId()
For responses, this returns true if the service returned a value for the AccountId property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
accountId
public final List<CoverageStringFilter> accountId()
An array of Amazon Web Services account IDs to return coverage statistics for.
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
hasAccountId()method.- Returns:
- An array of Amazon Web Services account IDs to return coverage statistics for.
-
hasEc2InstanceTags
public final boolean hasEc2InstanceTags()
For responses, this returns true if the service returned a value for the Ec2InstanceTags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
ec2InstanceTags
public final List<CoverageMapFilter> ec2InstanceTags()
The Amazon EC2 instance tags to filter on.
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
hasEc2InstanceTags()method.- Returns:
- The Amazon EC2 instance tags to filter on.
-
hasEcrImageTags
public final boolean hasEcrImageTags()
For responses, this returns true if the service returned a value for the EcrImageTags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
ecrImageTags
public final List<CoverageStringFilter> ecrImageTags()
The Amazon ECR image tags to filter on.
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
hasEcrImageTags()method.- Returns:
- The Amazon ECR image tags to filter on.
-
hasEcrRepositoryName
public final boolean hasEcrRepositoryName()
For responses, this returns true if the service returned a value for the EcrRepositoryName property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
ecrRepositoryName
public final List<CoverageStringFilter> ecrRepositoryName()
The Amazon ECR repository name to filter on.
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
hasEcrRepositoryName()method.- Returns:
- The Amazon ECR repository name to filter on.
-
hasLambdaFunctionName
public final boolean hasLambdaFunctionName()
For responses, this returns true if the service returned a value for the LambdaFunctionName property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
lambdaFunctionName
public final List<CoverageStringFilter> lambdaFunctionName()
Returns coverage statistics for AWS Lambda functions filtered by function names.
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
hasLambdaFunctionName()method.- Returns:
- Returns coverage statistics for AWS Lambda functions filtered by function names.
-
hasLambdaFunctionRuntime
public final boolean hasLambdaFunctionRuntime()
For responses, this returns true if the service returned a value for the LambdaFunctionRuntime property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
lambdaFunctionRuntime
public final List<CoverageStringFilter> lambdaFunctionRuntime()
Returns coverage statistics for AWS Lambda functions filtered by runtime.
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
hasLambdaFunctionRuntime()method.- Returns:
- Returns coverage statistics for AWS Lambda functions filtered by runtime.
-
hasLambdaFunctionTags
public final boolean hasLambdaFunctionTags()
For responses, this returns true if the service returned a value for the LambdaFunctionTags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
lambdaFunctionTags
public final List<CoverageMapFilter> lambdaFunctionTags()
Returns coverage statistics for AWS Lambda functions filtered by tag.
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
hasLambdaFunctionTags()method.- Returns:
- Returns coverage statistics for AWS Lambda functions filtered by tag.
-
hasLastScannedAt
public final boolean hasLastScannedAt()
For responses, this returns true if the service returned a value for the LastScannedAt property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
lastScannedAt
public final List<CoverageDateFilter> lastScannedAt()
Filters Amazon Web Services resources based on whether Amazon Inspector has checked them for vulnerabilities within the specified time range.
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
hasLastScannedAt()method.- Returns:
- Filters Amazon Web Services resources based on whether Amazon Inspector has checked them for vulnerabilities within the specified time range.
-
hasResourceId
public final boolean hasResourceId()
For responses, this returns true if the service returned a value for the ResourceId property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
resourceId
public final List<CoverageStringFilter> resourceId()
An array of Amazon Web Services resource IDs to return coverage statistics for.
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
hasResourceId()method.- Returns:
- An array of Amazon Web Services resource IDs to return coverage statistics for.
-
hasResourceType
public final boolean hasResourceType()
For responses, this returns true if the service returned a value for the ResourceType property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
resourceType
public final List<CoverageStringFilter> resourceType()
An array of Amazon Web Services resource types to return coverage statistics for. The values can be
AWS_EC2_INSTANCE,AWS_LAMBDA_FUNCTIONorAWS_ECR_REPOSITORY.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
hasResourceType()method.- Returns:
- An array of Amazon Web Services resource types to return coverage statistics for. The values can be
AWS_EC2_INSTANCE,AWS_LAMBDA_FUNCTIONorAWS_ECR_REPOSITORY.
-
hasScanStatusCode
public final boolean hasScanStatusCode()
For responses, this returns true if the service returned a value for the ScanStatusCode property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
scanStatusCode
public final List<CoverageStringFilter> scanStatusCode()
The scan status code to filter on. Valid values are:
ValidationException,InternalServerException,ResourceNotFoundException,BadRequestException, andThrottlingException.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
hasScanStatusCode()method.- Returns:
- The scan status code to filter on. Valid values are:
ValidationException,InternalServerException,ResourceNotFoundException,BadRequestException, andThrottlingException.
-
hasScanStatusReason
public final boolean hasScanStatusReason()
For responses, this returns true if the service returned a value for the ScanStatusReason property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
scanStatusReason
public final List<CoverageStringFilter> scanStatusReason()
The scan status reason to filter on.
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
hasScanStatusReason()method.- Returns:
- The scan status reason to filter on.
-
hasScanType
public final boolean hasScanType()
For responses, this returns true if the service returned a value for the ScanType property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
scanType
public final List<CoverageStringFilter> scanType()
An array of Amazon Inspector scan types to return coverage statistics for.
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
hasScanType()method.- Returns:
- An array of Amazon Inspector scan types to return coverage statistics for.
-
toBuilder
public CoverageFilterCriteria.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CoverageFilterCriteria.Builder,CoverageFilterCriteria>
-
builder
public static CoverageFilterCriteria.Builder builder()
-
serializableBuilderClass
public static Class<? extends CoverageFilterCriteria.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.
-
-