public ServiceConfiguration withContainerConfigurations(ContainerConfiguration... containerConfigurations) {
        if (this.containerConfigurations == null) {
            setContainerConfigurations(new java.util.ArrayList<ContainerConfiguration>(containerConfigurations.length));
        }
        for (ContainerConfiguration ele : containerConfigurations) {
            this.containerConfigurations.add(ele);
        }
        return this;
    }
<p>
The container configurations within a task of an Amazon ECS service.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setContainerConfigurations(java.util.Collection)} or
{@link #withContainerConfigurations(java.util.Collection)} if you want to override the existing values.
</p>

@param containerConfigurations
       The container configurations within a task of an Amazon ECS service.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/ServiceConfiguration.java