public NetworkConfiguration withAwsvpcConfiguration(AwsVpcConfiguration awsvpcConfiguration) {
        setAwsvpcConfiguration(awsvpcConfiguration);
        return this;
    }
<p>
The VPC subnets and security groups that are associated with a task.
</p>
<note>
<p>
All specified subnets and security groups must be from the same VPC.
</p>
</note>

@param awsvpcConfiguration
       The VPC subnets and security groups that are associated with a task.</p> <note>
       <p>
       All specified subnets and security groups must be from the same VPC.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/NetworkConfiguration.java