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

travel.izi.api.model.entity.ContentProvider Maven / Gradle / Ivy

/*
 * Copyright (C) 2014 IZITEQ B.V.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package travel.izi.api.model.entity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import com.google.auto.value.AutoValue;

import javax.annotation.Nullable;
import java.io.Serializable;

/**
 * Copyright information.
 */
@SuppressWarnings("unused")
@AutoValue
@JsonDeserialize(builder = AutoValue_ContentProvider.Builder.class)
public abstract class ContentProvider implements Serializable {

    public static Builder builder() {
        return new AutoValue_ContentProvider.Builder();
    }

    /**
     * Universally Unique Identifier of content provider.
     */
    public abstract String uuid();

    /**
     * Not localized Content Provider’s name.
     */
    public abstract String name();

    /**
     * Content provider copyright information. E.g., “© 2015 Art Museum”.
     */
    @Nullable
    public abstract String copyright();

    @AutoValue.Builder
    @JsonPOJOBuilder(withPrefix = "")
    public abstract static class Builder {
        public abstract Builder uuid(String uuid);
        public abstract Builder name(String name);
        public abstract Builder copyright(String copyright);

        public abstract ContentProvider build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy