package com.atlassian.stash.internal.backup;

import javax.annotation.Nonnull;

public class SimpleBackupFeature implements BackupFeature {

    private final BackupFeatureMode mode;
    private final String group;
    private final String name;

    public SimpleBackupFeature(String group, String name, BackupFeatureMode mode) {
        this.mode = mode;
        this.group = group;
        this.name = name;
    }

    @Nonnull
    @Override
    public String getGroup() {
        return group;
    }

    @Nonnull
    @Override
    public String getName() {
        return name;
    }

    @Nonnull
    @Override
    public BackupFeatureMode getMode() {
        return mode;
    }
}
