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

com.bazaarvoice.emodb.plugin.stash.StashMetadata Maven / Gradle / Ivy

There is a newer version: 6.5.190
Show newest version
package com.bazaarvoice.emodb.plugin.stash;

import java.net.URI;
import java.util.Date;
import java.util.Set;

import static java.util.Objects.requireNonNull;

/**
 * Metadata about a Stash run passed to {@link StashStateListener}.
 */
public class StashMetadata {

    private final String _id;
    private final Date _startTime;
    private final Set _placements;
    private final Set _destinations;

    public StashMetadata(String id, Date startTime, Set placements, Set destinations) {
        _id = requireNonNull(id, "id");
        _startTime = requireNonNull(startTime, "startTime");
        _placements = requireNonNull(placements, "placements");
        _destinations = requireNonNull(destinations, "destinations");
    }

    public String getId() {
        return _id;
    }

    public Date getStartTime() {
        return _startTime;
    }

    public Set getPlacements() {
        return _placements;
    }

    public Set getDestinations() {
        return _destinations;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy