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.ads;
024
025import java.util.Date;
026import com.restfb.Facebook;
027
028/**
029 * Represents the <a href="https://developers.facebook.com/docs/marketing-api/reference/product-feed-upload/">Product
030 * Feed Upload type</a>
031 */
032public class ProductFeedUpload extends BaseAdsObject {
033  /**
034   * The time the upload was completed
035   */
036  @Facebook("end_time")
037  private Date endTime;
038  /**
039   * The input method the product feed was obtained with
040   *
041   * possible values: Manual Upload, Server Fetch
042   */
043  @Facebook("input_method")
044  private String inputMethod;
045  /**
046   * The time the upload process started
047   */
048  @Facebook("start_time")
049  private Date startTime;
050  /**
051   * The url to fetch the products from
052   */
053  @Facebook("url")
054  private String url;
055
056  /**
057   * @return The time the upload was completed
058   */
059  @java.lang.SuppressWarnings("all")
060  public Date getEndTime() {
061    return this.endTime;
062  }
063
064  /**
065   * The time the upload was completed
066   */
067  @java.lang.SuppressWarnings("all")
068  public void setEndTime(final Date endTime) {
069    this.endTime = endTime;
070  }
071
072  /**
073   * @return The input method the product feed was obtained with
074   */
075  @java.lang.SuppressWarnings("all")
076  public String getInputMethod() {
077    return this.inputMethod;
078  }
079
080  /**
081   * The input method the product feed was obtained with
082   *
083   * possible values: Manual Upload, Server Fetch
084   */
085  @java.lang.SuppressWarnings("all")
086  public void setInputMethod(final String inputMethod) {
087    this.inputMethod = inputMethod;
088  }
089
090  /**
091   * @return The time the upload process started
092   */
093  @java.lang.SuppressWarnings("all")
094  public Date getStartTime() {
095    return this.startTime;
096  }
097
098  /**
099   * The time the upload process started
100   */
101  @java.lang.SuppressWarnings("all")
102  public void setStartTime(final Date startTime) {
103    this.startTime = startTime;
104  }
105
106  /**
107   * @return The url to fetch the products from
108   */
109  @java.lang.SuppressWarnings("all")
110  public String getUrl() {
111    return this.url;
112  }
113
114  /**
115   * The url to fetch the products from
116   */
117  @java.lang.SuppressWarnings("all")
118  public void setUrl(final String url) {
119    this.url = url;
120  }
121}