Interface AssetAttributes.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AssetAttributes.Builder,AssetAttributes>,SdkBuilder<AssetAttributes.Builder,AssetAttributes>,SdkPojo
- Enclosing class:
- AssetAttributes
public static interface AssetAttributes.Builder extends SdkPojo, CopyableBuilder<AssetAttributes.Builder,AssetAttributes>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssetAttributes.BuilderagentId(String agentId)The ID of the agent that is installed on the EC2 instance where the finding is generated.AssetAttributes.BuilderamiId(String amiId)The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.AssetAttributes.BuilderautoScalingGroup(String autoScalingGroup)The Auto Scaling group of the EC2 instance where the finding is generated.AssetAttributes.Builderhostname(String hostname)The hostname of the EC2 instance where the finding is generated.AssetAttributes.Builderipv4Addresses(String... ipv4Addresses)The list of IP v4 addresses of the EC2 instance where the finding is generated.AssetAttributes.Builderipv4Addresses(Collection<String> ipv4Addresses)The list of IP v4 addresses of the EC2 instance where the finding is generated.AssetAttributes.BuildernetworkInterfaces(Collection<NetworkInterface> networkInterfaces)An array of the network interfaces interacting with the EC2 instance where the finding is generated.AssetAttributes.BuildernetworkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)An array of the network interfaces interacting with the EC2 instance where the finding is generated.AssetAttributes.BuildernetworkInterfaces(NetworkInterface... networkInterfaces)An array of the network interfaces interacting with the EC2 instance where the finding is generated.AssetAttributes.BuilderschemaVersion(Integer schemaVersion)The schema version of this data type.AssetAttributes.Buildertags(Collection<Tag> tags)The tags related to the EC2 instance where the finding is generated.AssetAttributes.Buildertags(Consumer<Tag.Builder>... tags)The tags related to the EC2 instance where the finding is generated.AssetAttributes.Buildertags(Tag... tags)The tags related to the EC2 instance where the finding is generated.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
schemaVersion
AssetAttributes.Builder schemaVersion(Integer schemaVersion)
The schema version of this data type.
- Parameters:
schemaVersion- The schema version of this data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentId
AssetAttributes.Builder agentId(String agentId)
The ID of the agent that is installed on the EC2 instance where the finding is generated.
- Parameters:
agentId- The ID of the agent that is installed on the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroup
AssetAttributes.Builder autoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance where the finding is generated.
- Parameters:
autoScalingGroup- The Auto Scaling group of the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amiId
AssetAttributes.Builder amiId(String amiId)
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
- Parameters:
amiId- The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostname
AssetAttributes.Builder hostname(String hostname)
The hostname of the EC2 instance where the finding is generated.
- Parameters:
hostname- The hostname of the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Addresses
AssetAttributes.Builder ipv4Addresses(Collection<String> ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.
- Parameters:
ipv4Addresses- The list of IP v4 addresses of the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Addresses
AssetAttributes.Builder ipv4Addresses(String... ipv4Addresses)
The list of IP v4 addresses of the EC2 instance where the finding is generated.
- Parameters:
ipv4Addresses- The list of IP v4 addresses of the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
AssetAttributes.Builder tags(Collection<Tag> tags)
The tags related to the EC2 instance where the finding is generated.
- Parameters:
tags- The tags related to the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
AssetAttributes.Builder tags(Tag... tags)
The tags related to the EC2 instance where the finding is generated.
- Parameters:
tags- The tags related to the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
AssetAttributes.Builder tags(Consumer<Tag.Builder>... tags)
The tags related to the EC2 instance where the finding is generated.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
networkInterfaces
AssetAttributes.Builder networkInterfaces(Collection<NetworkInterface> networkInterfaces)
An array of the network interfaces interacting with the EC2 instance where the finding is generated.
- Parameters:
networkInterfaces- An array of the network interfaces interacting with the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
AssetAttributes.Builder networkInterfaces(NetworkInterface... networkInterfaces)
An array of the network interfaces interacting with the EC2 instance where the finding is generated.
- Parameters:
networkInterfaces- An array of the network interfaces interacting with the EC2 instance where the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
AssetAttributes.Builder networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
An array of the network interfaces interacting with the EC2 instance where the finding is generated.
This is a convenience method that creates an instance of theNetworkInterface.Builderavoiding the need to create one manually viaNetworkInterface.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#networkInterfaces(List.) - Parameters:
networkInterfaces- a consumer that will call methods onNetworkInterface.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#networkInterfaces(java.util.Collection)
-
-