/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.ActionStatus;
import org.openapitools.client.model.ChannelDto;
import org.openapitools.client.model.OfferTemplateCategoryDto;

/**
 * GetListChannelsAndSegmentsResponseDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class GetListChannelsAndSegmentsResponseDto {
  public static final String SERIALIZED_NAME_ACTION_STATUS = "actionStatus";
  @SerializedName(SERIALIZED_NAME_ACTION_STATUS)
  private ActionStatus actionStatus;

  public static final String SERIALIZED_NAME_CHANNELS = "channels";
  @SerializedName(SERIALIZED_NAME_CHANNELS)
  private List<ChannelDto> channels = null;

  public static final String SERIALIZED_NAME_SEGMENTS = "segments";
  @SerializedName(SERIALIZED_NAME_SEGMENTS)
  private List<OfferTemplateCategoryDto> segments = null;


  public GetListChannelsAndSegmentsResponseDto actionStatus(ActionStatus actionStatus) {
    
    this.actionStatus = actionStatus;
    return this;
  }

   /**
   * Get actionStatus
   * @return actionStatus
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public ActionStatus getActionStatus() {
    return actionStatus;
  }



  public void setActionStatus(ActionStatus actionStatus) {
    this.actionStatus = actionStatus;
  }


  public GetListChannelsAndSegmentsResponseDto channels(List<ChannelDto> channels) {
    
    this.channels = channels;
    return this;
  }

  public GetListChannelsAndSegmentsResponseDto addChannelsItem(ChannelDto channelsItem) {
    if (this.channels == null) {
      this.channels = new ArrayList<ChannelDto>();
    }
    this.channels.add(channelsItem);
    return this;
  }

   /**
   * Get channels
   * @return channels
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public List<ChannelDto> getChannels() {
    return channels;
  }



  public void setChannels(List<ChannelDto> channels) {
    this.channels = channels;
  }


  public GetListChannelsAndSegmentsResponseDto segments(List<OfferTemplateCategoryDto> segments) {
    
    this.segments = segments;
    return this;
  }

  public GetListChannelsAndSegmentsResponseDto addSegmentsItem(OfferTemplateCategoryDto segmentsItem) {
    if (this.segments == null) {
      this.segments = new ArrayList<OfferTemplateCategoryDto>();
    }
    this.segments.add(segmentsItem);
    return this;
  }

   /**
   * Get segments
   * @return segments
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public List<OfferTemplateCategoryDto> getSegments() {
    return segments;
  }



  public void setSegments(List<OfferTemplateCategoryDto> segments) {
    this.segments = segments;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetListChannelsAndSegmentsResponseDto getListChannelsAndSegmentsResponseDto = (GetListChannelsAndSegmentsResponseDto) o;
    return Objects.equals(this.actionStatus, getListChannelsAndSegmentsResponseDto.actionStatus) &&
        Objects.equals(this.channels, getListChannelsAndSegmentsResponseDto.channels) &&
        Objects.equals(this.segments, getListChannelsAndSegmentsResponseDto.segments);
  }

  @Override
  public int hashCode() {
    return Objects.hash(actionStatus, channels, segments);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetListChannelsAndSegmentsResponseDto {\n");
    sb.append("    actionStatus: ").append(toIndentedString(actionStatus)).append("\n");
    sb.append("    channels: ").append(toIndentedString(channels)).append("\n");
    sb.append("    segments: ").append(toIndentedString(segments)).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    ");
  }

}

