public TransitGatewayOptions withTransitGatewayCidrBlocks(String... transitGatewayCidrBlocks) {
        if (this.transitGatewayCidrBlocks == null) {
            setTransitGatewayCidrBlocks(new com.amazonaws.internal.SdkInternalList<String>(transitGatewayCidrBlocks.length));
        }
        for (String ele : transitGatewayCidrBlocks) {
            this.transitGatewayCidrBlocks.add(ele);
        }
        return this;
    }
<p>
The transit gateway CIDR blocks.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTransitGatewayCidrBlocks(java.util.Collection)} or
{@link #withTransitGatewayCidrBlocks(java.util.Collection)} if you want to override the existing values.
</p>

@param transitGatewayCidrBlocks
       The transit gateway CIDR blocks.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/TransitGatewayOptions.java