001// Generated by delombok at Sun Apr 14 14:59:49 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/MusicVideoCopyright.java">
033 * Facebook Business Ads SDK</a>
034 */
035public class MusicVideoCopyright extends FacebookType {
036  @Facebook("creation_time")
037  private Date creationTime;
038  @Facebook("displayed_matches_count")
039  private Long displayedMatchesCount;
040  @Facebook("in_conflict")
041  private Boolean inConflict;
042  @Facebook("isrc")
043  private String isrc;
044  @Facebook("match_rule")
045  private VideoCopyrightRule matchRule;
046  @Facebook("reference_file_status")
047  private String referenceFileStatus;
048  @Facebook("ridge_monitoring_status")
049  private String ridgeMonitoringStatus;
050  @Facebook("update_time")
051  private Date updateTime;
052  @Facebook("video_asset")
053  private CopyrightReferenceContainer videoAsset;
054  @Facebook("ownership_countries")
055  private List<String> ownershipCountries = new ArrayList<>();
056  @Facebook("whitelisted_fb_users")
057  private List<User> whitelistedFbUsers = new ArrayList<>();
058  @Facebook("whitelisted_ig_users")
059  private List<String> whitelistedIgUsers = new ArrayList<>();
060
061  public List<String> getOwnershipCountries() {
062    return unmodifiableList(ownershipCountries);
063  }
064
065  public boolean addOwnershipCountry(String ownershipCountry) {
066    return ownershipCountries.add(ownershipCountry);
067  }
068
069  public boolean removeOwnershipCountry(String ownershipCountry) {
070    return ownershipCountries.remove(ownershipCountry);
071  }
072
073  public List<User> getWhitelistedFbUsers() {
074    return unmodifiableList(whitelistedFbUsers);
075  }
076
077  public boolean addWhitelistedFbUser(User whitelistedFbUser) {
078    return whitelistedFbUsers.add(whitelistedFbUser);
079  }
080
081  public boolean removeWhitelistedFbUsers(User whitelistedFbUser) {
082    return whitelistedFbUsers.remove(whitelistedFbUser);
083  }
084
085  public List<String> getWhitelistedIgUsers() {
086    return unmodifiableList(whitelistedIgUsers);
087  }
088
089  public boolean addWhitelistedIgUser(String whitelistedIgUser) {
090    return whitelistedIgUsers.add(whitelistedIgUser);
091  }
092
093  public boolean removeWhitelistedIgUsers(String whitelistedIgUser) {
094    return whitelistedIgUsers.remove(whitelistedIgUser);
095  }
096
097  @java.lang.SuppressWarnings("all")
098  public Date getCreationTime() {
099    return this.creationTime;
100  }
101
102  @java.lang.SuppressWarnings("all")
103  public void setCreationTime(final Date creationTime) {
104    this.creationTime = creationTime;
105  }
106
107  @java.lang.SuppressWarnings("all")
108  public Long getDisplayedMatchesCount() {
109    return this.displayedMatchesCount;
110  }
111
112  @java.lang.SuppressWarnings("all")
113  public void setDisplayedMatchesCount(final Long displayedMatchesCount) {
114    this.displayedMatchesCount = displayedMatchesCount;
115  }
116
117  @java.lang.SuppressWarnings("all")
118  public Boolean getInConflict() {
119    return this.inConflict;
120  }
121
122  @java.lang.SuppressWarnings("all")
123  public void setInConflict(final Boolean inConflict) {
124    this.inConflict = inConflict;
125  }
126
127  @java.lang.SuppressWarnings("all")
128  public String getIsrc() {
129    return this.isrc;
130  }
131
132  @java.lang.SuppressWarnings("all")
133  public void setIsrc(final String isrc) {
134    this.isrc = isrc;
135  }
136
137  @java.lang.SuppressWarnings("all")
138  public VideoCopyrightRule getMatchRule() {
139    return this.matchRule;
140  }
141
142  @java.lang.SuppressWarnings("all")
143  public void setMatchRule(final VideoCopyrightRule matchRule) {
144    this.matchRule = matchRule;
145  }
146
147  @java.lang.SuppressWarnings("all")
148  public String getReferenceFileStatus() {
149    return this.referenceFileStatus;
150  }
151
152  @java.lang.SuppressWarnings("all")
153  public void setReferenceFileStatus(final String referenceFileStatus) {
154    this.referenceFileStatus = referenceFileStatus;
155  }
156
157  @java.lang.SuppressWarnings("all")
158  public String getRidgeMonitoringStatus() {
159    return this.ridgeMonitoringStatus;
160  }
161
162  @java.lang.SuppressWarnings("all")
163  public void setRidgeMonitoringStatus(final String ridgeMonitoringStatus) {
164    this.ridgeMonitoringStatus = ridgeMonitoringStatus;
165  }
166
167  @java.lang.SuppressWarnings("all")
168  public Date getUpdateTime() {
169    return this.updateTime;
170  }
171
172  @java.lang.SuppressWarnings("all")
173  public void setUpdateTime(final Date updateTime) {
174    this.updateTime = updateTime;
175  }
176
177  @java.lang.SuppressWarnings("all")
178  public CopyrightReferenceContainer getVideoAsset() {
179    return this.videoAsset;
180  }
181
182  @java.lang.SuppressWarnings("all")
183  public void setVideoAsset(final CopyrightReferenceContainer videoAsset) {
184    this.videoAsset = videoAsset;
185  }
186}