Interface AwsEc2InstanceViolation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEc2InstanceViolation.Builder,,AwsEc2InstanceViolation> SdkBuilder<AwsEc2InstanceViolation.Builder,,AwsEc2InstanceViolation> SdkPojo
- Enclosing class:
AwsEc2InstanceViolation
@Mutable
@NotThreadSafe
public static interface AwsEc2InstanceViolation.Builder
extends SdkPojo, CopyableBuilder<AwsEc2InstanceViolation.Builder,AwsEc2InstanceViolation>
-
Method Summary
Modifier and TypeMethodDescriptionawsEc2NetworkInterfaceViolations(Collection<AwsEc2NetworkInterfaceViolation> awsEc2NetworkInterfaceViolations) Violation detail for network interfaces associated with the EC2 instance.awsEc2NetworkInterfaceViolations(Consumer<AwsEc2NetworkInterfaceViolation.Builder>... awsEc2NetworkInterfaceViolations) Violation detail for network interfaces associated with the EC2 instance.awsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolation... awsEc2NetworkInterfaceViolations) Violation detail for network interfaces associated with the EC2 instance.violationTarget(String violationTarget) The resource ID of the EC2 instance.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
-
violationTarget
The resource ID of the EC2 instance.
- Parameters:
violationTarget- The resource ID of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsEc2NetworkInterfaceViolations
AwsEc2InstanceViolation.Builder awsEc2NetworkInterfaceViolations(Collection<AwsEc2NetworkInterfaceViolation> awsEc2NetworkInterfaceViolations) Violation detail for network interfaces associated with the EC2 instance.
- Parameters:
awsEc2NetworkInterfaceViolations- Violation detail for network interfaces associated with the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsEc2NetworkInterfaceViolations
AwsEc2InstanceViolation.Builder awsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolation... awsEc2NetworkInterfaceViolations) Violation detail for network interfaces associated with the EC2 instance.
- Parameters:
awsEc2NetworkInterfaceViolations- Violation detail for network interfaces associated with the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsEc2NetworkInterfaceViolations
AwsEc2InstanceViolation.Builder awsEc2NetworkInterfaceViolations(Consumer<AwsEc2NetworkInterfaceViolation.Builder>... awsEc2NetworkInterfaceViolations) Violation detail for network interfaces associated with the EC2 instance.
This is a convenience method that creates an instance of theAwsEc2NetworkInterfaceViolation.Builderavoiding the need to create one manually viaAwsEc2NetworkInterfaceViolation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toawsEc2NetworkInterfaceViolations(List<AwsEc2NetworkInterfaceViolation>).- Parameters:
awsEc2NetworkInterfaceViolations- a consumer that will call methods onAwsEc2NetworkInterfaceViolation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-