public Layer withCustomJson(String customJson) {
        setCustomJson(customJson);
        return this;
    }
<p>
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
</p>

@param customJson
       A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/Layer.java