public NetworkConfiguration getNetworkConfiguration() {
        return this.networkConfiguration;
    }
<p>
Use this structure if the Amazon ECS task uses the <code>awsvpc</code> network mode. This structure specifies the
VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This
structure is required if <code>LaunchType</code> is <code>FARGATE</code> because the <code>awsvpc</code> mode is
required for Fargate tasks.
</p>
<p>
If you specify <code>NetworkConfiguration</code> when the target ECS task does not use the <code>awsvpc</code>
network mode, the task fails.
</p>

@return Use this structure if the Amazon ECS task uses the <code>awsvpc</code> network mode. This structure
        specifies the VPC subnets and security groups associated with the task, and whether a public IP address
        is to be used. This structure is required if <code>LaunchType</code> is <code>FARGATE</code> because the
        <code>awsvpc</code> mode is required for Fargate tasks.</p>
        <p>
        If you specify <code>NetworkConfiguration</code> when the target ECS task does not use the
        <code>awsvpc</code> network mode, the task fails.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/EcsParameters.java