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-M26
Show newest version
package io.sphere.sdk.zones;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.ResourceImpl;

import javax.annotation.Nullable;
import java.time.ZonedDateTime;
import java.util.Set;

final class ZoneImpl extends ResourceImpl implements Zone {
    private final String name;
    @Nullable
    private final String description;
    private final Set locations;

    @JsonCreator
    ZoneImpl(final String id, final Long version, final ZonedDateTime createdAt, final ZonedDateTime lastModifiedAt, @Nullable final String description, final String name, final Set locations) {
        super(id, version, createdAt, lastModifiedAt);
        this.description = description;
        this.name = name;
        this.locations = locations;
    }

    @Nullable
    @Override
    public String getDescription() {
        return description;
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy