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

io.sphere.sdk.zones.ZoneImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.zones;

import io.sphere.sdk.models.DefaultModelImpl;

import java.time.Instant;
import java.util.Optional;
import java.util.Set;

final class ZoneImpl extends DefaultModelImpl implements Zone {
    private final String name;
    private final Optional description;
    private final Set locations;

    ZoneImpl(final String id, final long version, final Instant createdAt, final Instant lastModifiedAt, final Optional description, final String name, final Set locations) {
        super(id, version, createdAt, lastModifiedAt);
        this.description = description;
        this.name = name;
        this.locations = locations;
    }

    @Override
    public Optional getDescription() {
        return description;
    }

    @Override
    public Set getLocations() {
        return locations;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy