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

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

There is a newer version: 0.6.1
Show newest version
/**
 * Copyright (c) 2018 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 com.fasterxml.jackson.annotation.JsonValue;

/**
 * Enumerates the supported update modes. Each mode represents an attribute
 * update strategy.
 * 
 * @see DdiConfigData
 */
public enum DdiUpdateMode {

    /**
     * Merge update strategy
     */
    MERGE("merge"),

    /**
     * Replacement update strategy
     */
    REPLACE("replace"),

    /**
     * Removal update strategy
     */
    REMOVE("remove");

    private String name;

    DdiUpdateMode(final String name) {
        this.name = name;
    }

    @JsonValue
    public String getName() {
        return name;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy