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 java.util.List;
026import com.restfb.Facebook;
027import com.restfb.annotation.GraphAPI;
028
029/**
030 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/video-copyright/">Video
031 * Copyright</a> type
032 */
033public class VideoCopyright extends FacebookType {
034  /**
035   * The copyright content ID
036   */
037  @Facebook("copyright_content_id")
038  private String copyrightContentId;
039  /**
040   * The account that created the copyright
041   */
042  @Facebook
043  private User creator;
044  /**
045   * Whether the video is monitored successfully for copyright.
046   *
047   * The status could be {@code NOT_EXAMED}, {@code COPYRIGHTED} and {@code ERROR}.
048   */
049  @Facebook("monitoring_status")
050  @GraphAPI(since = "2.5")
051  private String monitoringStatus;
052  /**
053   * Whether the video is monitored for video, audio, or both
054   */
055  @Facebook("monitoring_type")
056  private String monitoringType;
057  /**
058   * A string array of ISO 3166 format country codes, where the owner owns the rights of the content
059   */
060  @Facebook("ownership_countries")
061  private List<String> ownershipCountries;
062  /**
063   * The ID of the reference video owner
064   */
065  @Facebook("reference_owner_id")
066  private String referenceOwnerId;
067  /**
068   * A list of matching rules applied to the copyrighted content
069   */
070  @Facebook("rule_ids")
071  private List<VideoCopyrightRule> ruleIds;
072  /**
073   * A list of page IDs or user IDs, who are allowed to use the copyrighted content.
074   */
075  @Facebook("whitelisted_ids")
076  private List<String> whitelistedIds;
077
078  /**
079   * The copyright content ID
080   */
081  @java.lang.SuppressWarnings("all")
082  public String getCopyrightContentId() {
083    return this.copyrightContentId;
084  }
085
086  /**
087   * The copyright content ID
088   */
089  @java.lang.SuppressWarnings("all")
090  public void setCopyrightContentId(final String copyrightContentId) {
091    this.copyrightContentId = copyrightContentId;
092  }
093
094  /**
095   * The account that created the copyright
096   */
097  @java.lang.SuppressWarnings("all")
098  public User getCreator() {
099    return this.creator;
100  }
101
102  /**
103   * The account that created the copyright
104   */
105  @java.lang.SuppressWarnings("all")
106  public void setCreator(final User creator) {
107    this.creator = creator;
108  }
109
110  /**
111   * Whether the video is monitored successfully for copyright.
112   *
113   * The status could be {@code NOT_EXAMED}, {@code COPYRIGHTED} and {@code ERROR}.
114   */
115  @GraphAPI(since = "2.5")
116  @java.lang.SuppressWarnings("all")
117  public String getMonitoringStatus() {
118    return this.monitoringStatus;
119  }
120
121  /**
122   * Whether the video is monitored successfully for copyright.
123   *
124   * The status could be {@code NOT_EXAMED}, {@code COPYRIGHTED} and {@code ERROR}.
125   */
126  @java.lang.SuppressWarnings("all")
127  public void setMonitoringStatus(final String monitoringStatus) {
128    this.monitoringStatus = monitoringStatus;
129  }
130
131  /**
132   * Whether the video is monitored for video, audio, or both
133   */
134  @java.lang.SuppressWarnings("all")
135  public String getMonitoringType() {
136    return this.monitoringType;
137  }
138
139  /**
140   * Whether the video is monitored for video, audio, or both
141   */
142  @java.lang.SuppressWarnings("all")
143  public void setMonitoringType(final String monitoringType) {
144    this.monitoringType = monitoringType;
145  }
146
147  /**
148   * A string array of ISO 3166 format country codes, where the owner owns the rights of the content
149   */
150  @java.lang.SuppressWarnings("all")
151  public List<String> getOwnershipCountries() {
152    return this.ownershipCountries;
153  }
154
155  /**
156   * A string array of ISO 3166 format country codes, where the owner owns the rights of the content
157   */
158  @java.lang.SuppressWarnings("all")
159  public void setOwnershipCountries(final List<String> ownershipCountries) {
160    this.ownershipCountries = ownershipCountries;
161  }
162
163  /**
164   * The ID of the reference video owner
165   */
166  @java.lang.SuppressWarnings("all")
167  public String getReferenceOwnerId() {
168    return this.referenceOwnerId;
169  }
170
171  /**
172   * The ID of the reference video owner
173   */
174  @java.lang.SuppressWarnings("all")
175  public void setReferenceOwnerId(final String referenceOwnerId) {
176    this.referenceOwnerId = referenceOwnerId;
177  }
178
179  /**
180   * A list of matching rules applied to the copyrighted content
181   */
182  @java.lang.SuppressWarnings("all")
183  public List<VideoCopyrightRule> getRuleIds() {
184    return this.ruleIds;
185  }
186
187  /**
188   * A list of matching rules applied to the copyrighted content
189   */
190  @java.lang.SuppressWarnings("all")
191  public void setRuleIds(final List<VideoCopyrightRule> ruleIds) {
192    this.ruleIds = ruleIds;
193  }
194
195  /**
196   * A list of page IDs or user IDs, who are allowed to use the copyrighted content.
197   */
198  @java.lang.SuppressWarnings("all")
199  public List<String> getWhitelistedIds() {
200    return this.whitelistedIds;
201  }
202
203  /**
204   * A list of page IDs or user IDs, who are allowed to use the copyrighted content.
205   */
206  @java.lang.SuppressWarnings("all")
207  public void setWhitelistedIds(final List<String> whitelistedIds) {
208    this.whitelistedIds = whitelistedIds;
209  }
210}