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

io.sphere.sdk.channels.ChannelImpl Maven / Gradle / Ivy

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

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

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

class ChannelImpl extends DefaultModelImpl implements Channel {
    private final String key;
    private final Set roles;
    private final Optional name;
    private final Optional description;

    @JsonCreator
    ChannelImpl(final String id, final long version, final Instant createdAt, final Instant lastModifiedAt, final String key, final Set roles, final Optional name, final Optional description) {
        super(id, version, createdAt, lastModifiedAt);
        this.key = key;
        this.roles = roles;
        this.name = name;
        this.description = description;
    }

    public String getKey() {
        return key;
    }

    public Set getRoles() {
        return roles;
    }

    public Optional getName() {
        return name;
    }

    public Optional getDescription() {
        return description;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy