com.sap.cloud.mt.subscription.json.DeploymentPayload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multi-tenant-subscription Show documentation
Show all versions of multi-tenant-subscription Show documentation
Spring Boot Enablement Parent
/******************************************************************************
* © 2020 SAP SE or an SAP affiliate company. All rights reserved. *
******************************************************************************/
package com.sap.cloud.mt.subscription.json;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import java.io.IOException;
/**
* Created by d025461 on 09.05.17.
*/
public class DeploymentPayload {
public VcapService ADDITIONAL_VCAP_SERVICES;//NOSONAR
public String TARGET_CONTAINER;//NOSONAR
@Override
public String toString() {
ObjectWriter writer = new ObjectMapper().writer().withDefaultPrettyPrinter();
try {
String json = writer.writeValueAsString(this);
return json;
} catch (IOException e) {
return "Could not convert deploy payload to a string";
}
}
}