Class ResourceFilterCriteria
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.ResourceFilterCriteria
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceFilterCriteria.Builder,ResourceFilterCriteria>
@Generated("software.amazon.awssdk:codegen") public final class ResourceFilterCriteria extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceFilterCriteria.Builder,ResourceFilterCriteria>
The resource filter criteria for a Software bill of materials (SBOM) report.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceFilterCriteria.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResourceStringFilter>accountId()The account IDs used as resource filter criteria.static ResourceFilterCriteria.Builderbuilder()List<ResourceMapFilter>ec2InstanceTags()The EC2 instance tags used as resource filter criteria.List<ResourceStringFilter>ecrImageTags()The ECR image tags used as resource filter criteria.List<ResourceStringFilter>ecrRepositoryName()The ECR repository names used as resource filter criteria.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.booleanhasLambdaFunctionTags()For responses, this returns true if the service returned a value for the LambdaFunctionTags 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.List<ResourceStringFilter>lambdaFunctionName()The Amazon Web Services Lambda function name used as resource filter criteria.List<ResourceMapFilter>lambdaFunctionTags()The Amazon Web Services Lambda function tags used as resource filter criteria.List<ResourceStringFilter>resourceId()The resource IDs used as resource filter criteria.List<ResourceStringFilter>resourceType()The resource types used as resource filter criteria.List<SdkField<?>>sdkFields()static Class<? extends ResourceFilterCriteria.Builder>serializableBuilderClass()ResourceFilterCriteria.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<ResourceStringFilter> accountId()
The account IDs used as resource filter criteria.
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:
- The account IDs used as resource filter criteria.
-
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<ResourceMapFilter> ec2InstanceTags()
The EC2 instance tags used as resource filter criteria.
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 EC2 instance tags used as resource filter criteria.
-
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<ResourceStringFilter> ecrImageTags()
The ECR image tags used as resource filter criteria.
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 ECR image tags used as resource filter criteria.
-
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<ResourceStringFilter> ecrRepositoryName()
The ECR repository names used as resource filter criteria.
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 ECR repository names used as resource filter criteria.
-
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<ResourceStringFilter> lambdaFunctionName()
The Amazon Web Services Lambda function name used as resource filter criteria.
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:
- The Amazon Web Services Lambda function name used as resource filter criteria.
-
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<ResourceMapFilter> lambdaFunctionTags()
The Amazon Web Services Lambda function tags used as resource filter criteria.
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:
- The Amazon Web Services Lambda function tags used as resource filter criteria.
-
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<ResourceStringFilter> resourceId()
The resource IDs used as resource filter criteria.
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:
- The resource IDs used as resource filter criteria.
-
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<ResourceStringFilter> resourceType()
The resource types used as resource filter criteria.
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:
- The resource types used as resource filter criteria.
-
toBuilder
public ResourceFilterCriteria.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceFilterCriteria.Builder,ResourceFilterCriteria>
-
builder
public static ResourceFilterCriteria.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceFilterCriteria.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.
-
-