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

io.sphere.sdk.models.ContainerAndKeyImpl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;

final class ContainerAndKeyImpl extends Base implements ContainerAndKey{
    private final String container;
    private final String key;

    @JsonCreator
    public ContainerAndKeyImpl(String container, String key) {
        this.container = container;
        this.key = key;
    }

    @JsonIgnore
    public static ContainerAndKey of(final String container, final String key) {
        return new ContainerAndKeyImpl(container, key);
    }

    @Override
    public String getContainer() {
        return container;
    }

    @Override
    public String getKey() {
        return key;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy