001// Generated by delombok at Fri Oct 04 16:05:59 CEST 2024
002/*
003 * Copyright (c) 2010-2024 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types;
024
025import static java.util.Collections.unmodifiableList;
026import java.util.ArrayList;
027import java.util.Date;
028import java.util.List;
029import com.restfb.Facebook;
030
031/**
032 * Ported from <a href="https://github.com/facebook/facebook-java-business-sdk/blob/189b22281f75681939750fc71ae1429651865867/src/main/java/com/facebook/ads/sdk/CopyrightReferenceContainer.java">
033 * Facebook Business Ads SDK</a>
034 */
035public class CopyrightReferenceContainer extends FacebookType {
036  @Facebook("content_type")
037  private String contentType;
038  @Facebook("copyright_creation_time")
039  private String copyrightCreationTime;
040  @Facebook("download_hd_url")
041  private String downloadHdUrl;
042  @Facebook("duration_in_sec")
043  private Double durationInSec;
044  @Facebook("fingerprint_validity")
045  private String fingerprintValidity;
046  @Facebook("iswc")
047  private String iswc;
048  @Facebook("published_time")
049  private Date publishedTime;
050  @Facebook("thumbnail_url")
051  private String thumbnailUrl;
052  @Facebook("title")
053  private String title;
054  @Facebook("universal_content_id")
055  private String universalContentId;
056  @Facebook("writer_names")
057  private List<String> writerNames = new ArrayList<>();
058
059  public List<String> getWriterNames() {
060    return unmodifiableList(writerNames);
061  }
062
063  public boolean addWriterName(String writerName) {
064    return writerNames.add(writerName);
065  }
066
067  public boolean removeWriterName(String writerName) {
068    return writerNames.remove(writerName);
069  }
070
071  @java.lang.SuppressWarnings("all")
072  public String getContentType() {
073    return this.contentType;
074  }
075
076  @java.lang.SuppressWarnings("all")
077  public void setContentType(final String contentType) {
078    this.contentType = contentType;
079  }
080
081  @java.lang.SuppressWarnings("all")
082  public String getCopyrightCreationTime() {
083    return this.copyrightCreationTime;
084  }
085
086  @java.lang.SuppressWarnings("all")
087  public void setCopyrightCreationTime(final String copyrightCreationTime) {
088    this.copyrightCreationTime = copyrightCreationTime;
089  }
090
091  @java.lang.SuppressWarnings("all")
092  public String getDownloadHdUrl() {
093    return this.downloadHdUrl;
094  }
095
096  @java.lang.SuppressWarnings("all")
097  public void setDownloadHdUrl(final String downloadHdUrl) {
098    this.downloadHdUrl = downloadHdUrl;
099  }
100
101  @java.lang.SuppressWarnings("all")
102  public Double getDurationInSec() {
103    return this.durationInSec;
104  }
105
106  @java.lang.SuppressWarnings("all")
107  public void setDurationInSec(final Double durationInSec) {
108    this.durationInSec = durationInSec;
109  }
110
111  @java.lang.SuppressWarnings("all")
112  public String getFingerprintValidity() {
113    return this.fingerprintValidity;
114  }
115
116  @java.lang.SuppressWarnings("all")
117  public void setFingerprintValidity(final String fingerprintValidity) {
118    this.fingerprintValidity = fingerprintValidity;
119  }
120
121  @java.lang.SuppressWarnings("all")
122  public String getIswc() {
123    return this.iswc;
124  }
125
126  @java.lang.SuppressWarnings("all")
127  public void setIswc(final String iswc) {
128    this.iswc = iswc;
129  }
130
131  @java.lang.SuppressWarnings("all")
132  public Date getPublishedTime() {
133    return this.publishedTime;
134  }
135
136  @java.lang.SuppressWarnings("all")
137  public void setPublishedTime(final Date publishedTime) {
138    this.publishedTime = publishedTime;
139  }
140
141  @java.lang.SuppressWarnings("all")
142  public String getThumbnailUrl() {
143    return this.thumbnailUrl;
144  }
145
146  @java.lang.SuppressWarnings("all")
147  public void setThumbnailUrl(final String thumbnailUrl) {
148    this.thumbnailUrl = thumbnailUrl;
149  }
150
151  @java.lang.SuppressWarnings("all")
152  public String getTitle() {
153    return this.title;
154  }
155
156  @java.lang.SuppressWarnings("all")
157  public void setTitle(final String title) {
158    this.title = title;
159  }
160
161  @java.lang.SuppressWarnings("all")
162  public String getUniversalContentId() {
163    return this.universalContentId;
164  }
165
166  @java.lang.SuppressWarnings("all")
167  public void setUniversalContentId(final String universalContentId) {
168    this.universalContentId = universalContentId;
169  }
170}