/** * <p> * A string that contains user-defined, custom JSON. It is used to override the corresponding default stack * configuration JSON values. The string should be in the following format: * </p> * <p> * <code>"{\"key1\": \"value1\", \"key2\": \"value2\",...}"</code> * </p> * <p> * For more information about custom JSON, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html">Use Custom JSON to Modify the * Stack Configuration Attributes</a>. * </p> * * @param customJson * A string that contains user-defined, custom JSON. It is used to override the corresponding default stack * configuration JSON values. The string should be in the following format:</p> * <p> * <code>"{\"key1\": \"value1\", \"key2\": \"value2\",...}"</code> * </p> * <p> * For more information about custom JSON, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html">Use Custom JSON to * Modify the Stack Configuration Attributes</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentRequest withCustomJson(String customJson) { setCustomJson(customJson); return this; }
/** * <p> * A string that contains user-defined, custom JSON. It is used to override the corresponding default stack * configuration JSON values. The string should be in the following format: * </p> * <p> * <code>"{\"key1\": \"value1\", \"key2\": \"value2\",...}"</code> * </p> * <p> * For more information about custom JSON, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html">Use Custom JSON to Modify the * Stack Configuration Attributes</a>. * </p> * * @param customJson * A string that contains user-defined, custom JSON. It is used to override the corresponding default stack * configuration JSON values. The string should be in the following format:</p> * <p> * <code>"{\"key1\": \"value1\", \"key2\": \"value2\",...}"</code> * </p> * <p> * For more information about custom JSON, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html">Use Custom JSON to * Modify the Stack Configuration Attributes</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentRequest withCustomJson(String customJson) { setCustomJson(customJson); return this; }
createDeploymentRequest.setCustomJson(customJson);