All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.hawkbit.dmf.json.model.DmfArtifactHash Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
/**
 * 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.dmf.json.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * JSON representation of artifact hash.
 */
public class DmfArtifactHash {

    @JsonProperty
    private String sha1;

    @JsonProperty
    private String md5;

    /**
     * Constructor.
     * 
     * @param sha1
     *            the sha1 hash
     * @param md5
     *            the md5 hash
     */
    @JsonCreator
    public DmfArtifactHash(@JsonProperty("sha1") final String sha1, @JsonProperty("md5") final String md5) {
        this.sha1 = sha1;
        this.md5 = md5;
    }

    public void setSha1(final String sha1) {
        this.sha1 = sha1;
    }

    public void setMd5(final String md5) {
        this.md5 = md5;
    }

    public String getSha1() {
        return sha1;
    }

    public String getMd5() {
        return md5;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy