Interface ResourceResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceResult.Builder,,ResourceResult> SdkBuilder<ResourceResult.Builder,,ResourceResult> SdkPojo
- Enclosing class:
ResourceResult
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account that recorded the resource data in Security Hub.accountName(String accountName) The name of the Amazon Web Services account that's associated with the resource.discoveryType(String discoveryType) Specifies how the resource was discovered.discoveryType(DiscoveryType discoveryType) Specifies how the resource was discovered.findingsSummary(Collection<ResourceFindingsSummary> findingsSummary) An aggregated view of security findings associated with a resource.findingsSummary(Consumer<ResourceFindingsSummary.Builder>... findingsSummary) An aggregated view of security findings associated with a resource.findingsSummary(ResourceFindingsSummary... findingsSummary) An aggregated view of security findings associated with a resource.The Amazon Web Services Region that recorded the resource data in Security Hub.resourceCategory(String resourceCategory) The grouping where the resource belongs.resourceCategory(ResourceCategory resourceCategory) The grouping where the resource belongs.resourceCloudPartition(String resourceCloudPartition) The cloud partition where the resource exists.resourceConfig(Document resourceConfig) The configuration details of a resource.resourceCreationTimeDt(String resourceCreationTimeDt) The time when the resource was created.resourceDetailCaptureTimeDt(String resourceDetailCaptureTimeDt) The timestamp when information about the resource was captured.resourceGuid(String resourceGuid) The global identifier used to identify a resource.resourceId(String resourceId) The unique identifier for a resource.default ResourceResult.BuilderresourceInfo(Consumer<ResourceInfo.Builder> resourceInfo) Additional resource-type-specific details.resourceInfo(ResourceInfo resourceInfo) Additional resource-type-specific details.resourceName(String resourceName) The name of the resource.resourceOwnerAccountId(String resourceOwnerAccountId) The identifier of the cloud account that owns the resource.resourceOwnerOrgId(String resourceOwnerOrgId) The identifier of the cloud organization that owns the resource.resourceProvider(String resourceProvider) The cloud provider where the resource exists.resourceRegion(String resourceRegion) The native cloud region where the resource is located.resourceSubCategory(String resourceSubCategory) The AI/ML sub-grouping of the resource.resourceSubCategory(ResourceSubCategory resourceSubCategory) The AI/ML sub-grouping of the resource.resourceTags(Collection<ResourceTag> resourceTags) The key-value pairs associated with a resource.resourceTags(Consumer<ResourceTag.Builder>... resourceTags) The key-value pairs associated with a resource.resourceTags(ResourceTag... resourceTags) The key-value pairs associated with a resource.resourceType(String resourceType) The type of resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
resourceGuid
The global identifier used to identify a resource.
- Parameters:
resourceGuid- The global identifier used to identify a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
The unique identifier for a resource.
- Parameters:
resourceId- The unique identifier for a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account that recorded the resource data in Security Hub.
- Parameters:
accountId- The Amazon Web Services account that recorded the resource data in Security Hub.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountName
The name of the Amazon Web Services account that's associated with the resource.
- Parameters:
accountName- The name of the Amazon Web Services account that's associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
region
The Amazon Web Services Region that recorded the resource data in Security Hub.
- Parameters:
region- The Amazon Web Services Region that recorded the resource data in Security Hub.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceProvider
The cloud provider where the resource exists. Valid values are
AWSandAzure. This field is always included.- Parameters:
resourceProvider- The cloud provider where the resource exists. Valid values areAWSandAzure. This field is always included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceOwnerAccountId
The identifier of the cloud account that owns the resource. For Amazon Web Services resources, this is the Amazon Web Services account ID. For Azure resources, this is the Azure subscription ID.
- Parameters:
resourceOwnerAccountId- The identifier of the cloud account that owns the resource. For Amazon Web Services resources, this is the Amazon Web Services account ID. For Azure resources, this is the Azure subscription ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceOwnerOrgId
The identifier of the cloud organization that owns the resource. For Amazon Web Services resources, this is the Organizations ID. For Azure resources, this is the Azure tenant ID.
- Parameters:
resourceOwnerOrgId- The identifier of the cloud organization that owns the resource. For Amazon Web Services resources, this is the Organizations ID. For Azure resources, this is the Azure tenant ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCloudPartition
The cloud partition where the resource exists. For Amazon Web Services, valid values include
aws,aws-cn, andaws-us-gov. This field isn't returned for cloud providers that don't use partitions.- Parameters:
resourceCloudPartition- The cloud partition where the resource exists. For Amazon Web Services, valid values includeaws,aws-cn, andaws-us-gov. This field isn't returned for cloud providers that don't use partitions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRegion
The native cloud region where the resource is located. For Amazon Web Services, this is an Amazon Web Services Region (for example,
us-east-1). For Azure resources, this is the Azure region (for example,westus2). This field is always included.- Parameters:
resourceRegion- The native cloud region where the resource is located. For Amazon Web Services, this is an Amazon Web Services Region (for example,us-east-1). For Azure resources, this is the Azure region (for example,westus2). This field is always included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCategory
The grouping where the resource belongs.
- Parameters:
resourceCategory- The grouping where the resource belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceCategory
The grouping where the resource belongs.
- Parameters:
resourceCategory- The grouping where the resource belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource.
- Parameters:
resourceType- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceName
The name of the resource.
- Parameters:
resourceName- The name of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCreationTimeDt
The time when the resource was created.
- Parameters:
resourceCreationTimeDt- The time when the resource was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceDetailCaptureTimeDt
The timestamp when information about the resource was captured.
- Parameters:
resourceDetailCaptureTimeDt- The timestamp when information about the resource was captured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingsSummary
An aggregated view of security findings associated with a resource.
- Parameters:
findingsSummary- An aggregated view of security findings associated with a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingsSummary
An aggregated view of security findings associated with a resource.
- Parameters:
findingsSummary- An aggregated view of security findings associated with a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingsSummary
ResourceResult.Builder findingsSummary(Consumer<ResourceFindingsSummary.Builder>... findingsSummary) An aggregated view of security findings associated with a resource.
This is a convenience method that creates an instance of theResourceFindingsSummary.Builderavoiding the need to create one manually viaResourceFindingsSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofindingsSummary(List<ResourceFindingsSummary>).- Parameters:
findingsSummary- a consumer that will call methods onResourceFindingsSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceTags
The key-value pairs associated with a resource.
- Parameters:
resourceTags- The key-value pairs associated with a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
The key-value pairs associated with a resource.
- Parameters:
resourceTags- The key-value pairs associated with a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
The key-value pairs associated with a resource.
This is a convenience method that creates an instance of theResourceTag.Builderavoiding the need to create one manually viaResourceTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceTags(List<ResourceTag>).- Parameters:
resourceTags- a consumer that will call methods onResourceTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceConfig
The configuration details of a resource.
- Parameters:
resourceConfig- The configuration details of a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceSubCategory
The AI/ML sub-grouping of the resource. Present only when
ResourceCategoryisAI/ML.- Parameters:
resourceSubCategory- The AI/ML sub-grouping of the resource. Present only whenResourceCategoryisAI/ML.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceSubCategory
The AI/ML sub-grouping of the resource. Present only when
ResourceCategoryisAI/ML.- Parameters:
resourceSubCategory- The AI/ML sub-grouping of the resource. Present only whenResourceCategoryisAI/ML.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
discoveryType
Specifies how the resource was discovered. If the value is
Managed, the resource is natively provided by a cloud service provider. If the value isSelfHosted, the resource is hosted on customer-managed infrastructure, such as a compute instance or container image.- Parameters:
discoveryType- Specifies how the resource was discovered. If the value isManaged, the resource is natively provided by a cloud service provider. If the value isSelfHosted, the resource is hosted on customer-managed infrastructure, such as a compute instance or container image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
discoveryType
Specifies how the resource was discovered. If the value is
Managed, the resource is natively provided by a cloud service provider. If the value isSelfHosted, the resource is hosted on customer-managed infrastructure, such as a compute instance or container image.- Parameters:
discoveryType- Specifies how the resource was discovered. If the value isManaged, the resource is natively provided by a cloud service provider. If the value isSelfHosted, the resource is hosted on customer-managed infrastructure, such as a compute instance or container image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceInfo
Additional resource-type-specific details. For self-hosted AI resources and their host resources, contains an
AIDetailsstructure.- Parameters:
resourceInfo- Additional resource-type-specific details. For self-hosted AI resources and their host resources, contains anAIDetailsstructure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceInfo
Additional resource-type-specific details. For self-hosted AI resources and their host resources, contains an
This is a convenience method that creates an instance of theAIDetailsstructure.ResourceInfo.Builderavoiding the need to create one manually viaResourceInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceInfo(ResourceInfo).- Parameters:
resourceInfo- a consumer that will call methods onResourceInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-