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

org.eclipse.hawkbit.ddi.json.model.DdiArtifact Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package org.eclipse.hawkbit.ddi.json.model;

import javax.validation.constraints.NotNull;

import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.hateoas.RepresentationModel;

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

/**
 * Download information for all artifacts related to a specific {@link DdiChunk}
 * .
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class DdiArtifact extends RepresentationModel {

    @NotNull
    @JsonProperty
    @Schema(example = "binary.tgz")
    private String filename;

    @JsonProperty
    private DdiArtifactHash hashes;

    @JsonProperty
    @Schema(example = "3")
    private Long size;

    public DdiArtifactHash getHashes() {
        return hashes;
    }

    public void setHashes(final DdiArtifactHash hashes) {
        this.hashes = hashes;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(final String fileName) {
        filename = fileName;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(final Long size) {
        this.size = size;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy