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

dev.galasa.framework.spi.DssUpdate Maven / Gradle / Ivy

There is a newer version: 0.37.0
Show newest version
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.framework.spi;

import javax.validation.constraints.NotNull;

/**
 * This DSS action request that property is updated in the DSS whether it exists or not. 
 * If you want the transaction to fail if the property already exists, use DssAdd
 * 
 *  
 *
 */
public class DssUpdate implements IDssAction {
    
    private final String key;
    private final String value;

    public DssUpdate(@NotNull String key, @NotNull String value) {
        this.key = key;
        this.value = value;
    }
    
    public String getKey() {
        return key;
    }
    
    public String getValue() {
        return value;
    }
    
    @Override
    public IDssAction applyPrefix(String prefix) {
        return new DssUpdate(prefix + this.key, value);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy