Class CoverageFilterCriteria

    • 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 the isEmpty() 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 the isEmpty() 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 the isEmpty() 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 the isEmpty() 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 the isEmpty() 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 the isEmpty() 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 the isEmpty() 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 the isEmpty() 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 the isEmpty() 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 the isEmpty() 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_FUNCTION or AWS_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_FUNCTION or AWS_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 the isEmpty() 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, and ThrottlingException.

        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, and ThrottlingException.
      • 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 the isEmpty() 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 the isEmpty() 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)