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