/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.eclipse.hawkbit.ddi.json.model;

import javax.validation.constraints.NotNull;

import org.springframework.hateoas.ResourceSupport;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Update action resource.
 */
public class DdiDeploymentBase extends ResourceSupport {

    @JsonProperty("id")
    @NotNull
    private final String deplyomentId;

    @NotNull
    private final DdiDeployment deployment;

    /**
     * Constructor.
     *
     * @param id
     *            of the update action
     * @param deployment
     *            details.
     */
    public DdiDeploymentBase(final String id, final DdiDeployment deployment) {
        this.deplyomentId = id;
        this.deployment = deployment;
    }

    public DdiDeployment getDeployment() {
        return deployment;
    }

    @Override
    public String toString() {
        return "DeploymentBase [id=" + deplyomentId + ", deployment=" + deployment + "]";
    }

}

@@ -460,16 +460,69 @@
 pport;%0A%0A
+import com.fasterxml.jackson.annotation.JsonCreator;%0A
 import c
@@ -947,16 +947,33 @@
      */%0A
+    @JsonCreator%0A
     publ
@@ -997,24 +997,86 @@
 ase(
-final String id,
+@JsonProperty(%22id%22) final String id,%0A            @JsonProperty(%22deplyomentId%22)
  fin

add json-creator to DdiDeploymentBase