All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.ContentWithMetadataListOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 65.1.3-v202408082312
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.seeq.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.AssetSelectionOutputV1;
import com.seeq.model.ContentWithMetadataOutputV1;
import com.seeq.model.DateRangeOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * ContentWithMetadataListOutputV1
 */
public class ContentWithMetadataListOutputV1 {
  @JsonProperty("assetSelections")
  private List assetSelections = new ArrayList();

  @JsonProperty("contentItems")
  private List contentItems = new ArrayList();

  @JsonProperty("dateRanges")
  private List dateRanges = new ArrayList();

  public ContentWithMetadataListOutputV1 assetSelections(List assetSelections) {
    this.assetSelections = assetSelections;
    return this;
  }

  public ContentWithMetadataListOutputV1 addAssetSelectionsItem(AssetSelectionOutputV1 assetSelectionsItem) {
    if (this.assetSelections == null) {
      this.assetSelections = new ArrayList();
    }
    this.assetSelections.add(assetSelectionsItem);
    return this;
  }

   /**
   * A list of asset selections
   * @return assetSelections
  **/
  @Schema(description = "A list of asset selections")
  public List getAssetSelections() {
    return assetSelections;
  }

  public void setAssetSelections(List assetSelections) {
    this.assetSelections = assetSelections;
  }

  public ContentWithMetadataListOutputV1 contentItems(List contentItems) {
    this.contentItems = contentItems;
    return this;
  }

  public ContentWithMetadataListOutputV1 addContentItemsItem(ContentWithMetadataOutputV1 contentItemsItem) {
    if (this.contentItems == null) {
      this.contentItems = new ArrayList();
    }
    this.contentItems.add(contentItemsItem);
    return this;
  }

   /**
   * A list of content items
   * @return contentItems
  **/
  @Schema(description = "A list of content items")
  public List getContentItems() {
    return contentItems;
  }

  public void setContentItems(List contentItems) {
    this.contentItems = contentItems;
  }

  public ContentWithMetadataListOutputV1 dateRanges(List dateRanges) {
    this.dateRanges = dateRanges;
    return this;
  }

  public ContentWithMetadataListOutputV1 addDateRangesItem(DateRangeOutputV1 dateRangesItem) {
    if (this.dateRanges == null) {
      this.dateRanges = new ArrayList();
    }
    this.dateRanges.add(dateRangesItem);
    return this;
  }

   /**
   * A list of date ranges
   * @return dateRanges
  **/
  @Schema(description = "A list of date ranges")
  public List getDateRanges() {
    return dateRanges;
  }

  public void setDateRanges(List dateRanges) {
    this.dateRanges = dateRanges;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ContentWithMetadataListOutputV1 contentWithMetadataListOutputV1 = (ContentWithMetadataListOutputV1) o;
    return Objects.equals(this.assetSelections, contentWithMetadataListOutputV1.assetSelections) &&
        Objects.equals(this.contentItems, contentWithMetadataListOutputV1.contentItems) &&
        Objects.equals(this.dateRanges, contentWithMetadataListOutputV1.dateRanges);
  }

  @Override
  public int hashCode() {
    return Objects.hash(assetSelections, contentItems, dateRanges);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ContentWithMetadataListOutputV1 {\n");
    
    sb.append("    assetSelections: ").append(toIndentedString(assetSelections)).append("\n");
    sb.append("    contentItems: ").append(toIndentedString(contentItems)).append("\n");
    sb.append("    dateRanges: ").append(toIndentedString(dateRanges)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy