public DescribeGatewayInformationResult withSupportedGatewayCapacities(GatewayCapacity... supportedGatewayCapacities) {
        com.amazonaws.internal.SdkInternalList<String> supportedGatewayCapacitiesCopy = new com.amazonaws.internal.SdkInternalList<String>(
                supportedGatewayCapacities.length);
        for (GatewayCapacity value : supportedGatewayCapacities) {
            supportedGatewayCapacitiesCopy.add(value.toString());
        }
        if (getSupportedGatewayCapacities() == null) {
            setSupportedGatewayCapacities(supportedGatewayCapacitiesCopy);
        } else {
            getSupportedGatewayCapacities().addAll(supportedGatewayCapacitiesCopy);
        }
        return this;
    }
<p>
A list of the metadata cache sizes that the gateway can support based on its current hardware specifications.
</p>

@param supportedGatewayCapacities
       A list of the metadata cache sizes that the gateway can support based on its current hardware
       specifications.
@return Returns a reference to this object so that method calls can be chained together.
@see GatewayCapacity
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/DescribeGatewayInformationResult.java