class PayloadClient {

    public static Optional<String> snapshotFormat(String vmId, String identityUrl) throws JsonProcessingException {
        SnapshotAction payloadResult = new SnapshotAction();
        payloadResult.setVmId(vmId);
        payloadResult.setIdentityUrl(identityUrl);
        return Optional.of(mapper.writeValueAsString(payloadResult));
    }

    private  PayloadClient();

}