<filename>emulator-tapi-2.1/tapi2.1-javaServer/src/gen/java/io/swagger/model/TapiEthEthConnectionEndPointSpec.java
/*
 * tapi-common,tapi-dsr,tapi-path-computation,tapi-eth,tapi-virtual-network,tapi-topology,tapi-notification,tapi-oam,tapi-photonic-media,tapi-connectivity API
 * tapi-common,tapi-dsr,tapi-path-computation,tapi-eth,tapi-virtual-network,tapi-topology,tapi-notification,tapi-oam,tapi-photonic-media,tapi-connectivity API generated from yang definitions
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * 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 io.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.model.TapiEthEthCtpPac;
import io.swagger.model.TapiEthEthTerminationPac;
import io.swagger.model.TapiEthEtyTerminationPac;
import javax.validation.constraints.*;

/**
 * TapiEthEthConnectionEndPointSpec
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2018-11-14T14:58:12.974+01:00")
public class TapiEthEthConnectionEndPointSpec   {
  @JsonProperty("eth-term")
  private TapiEthEthTerminationPac ethTerm = null;

  @JsonProperty("ety-term")
  private TapiEthEtyTerminationPac etyTerm = null;

  @JsonProperty("eth-ctp")
  private TapiEthEthCtpPac ethCtp = null;

  public TapiEthEthConnectionEndPointSpec ethTerm(TapiEthEthTerminationPac ethTerm) {
    this.ethTerm = ethTerm;
    return this;
  }

  /**
   * none
   * @return ethTerm
   **/
  @JsonProperty("eth-term")
  @ApiModelProperty(value = "none")
  public TapiEthEthTerminationPac getEthTerm() {
    return ethTerm;
  }

  public void setEthTerm(TapiEthEthTerminationPac ethTerm) {
    this.ethTerm = ethTerm;
  }

  public TapiEthEthConnectionEndPointSpec etyTerm(TapiEthEtyTerminationPac etyTerm) {
    this.etyTerm = etyTerm;
    return this;
  }

  /**
   * none
   * @return etyTerm
   **/
  @JsonProperty("ety-term")
  @ApiModelProperty(value = "none")
  public TapiEthEtyTerminationPac getEtyTerm() {
    return etyTerm;
  }

  public void setEtyTerm(TapiEthEtyTerminationPac etyTerm) {
    this.etyTerm = etyTerm;
  }

  public TapiEthEthConnectionEndPointSpec ethCtp(TapiEthEthCtpPac ethCtp) {
    this.ethCtp = ethCtp;
    return this;
  }

  /**
   * none
   * @return ethCtp
   **/
  @JsonProperty("eth-ctp")
  @ApiModelProperty(value = "none")
  public TapiEthEthCtpPac getEthCtp() {
    return ethCtp;
  }

  public void setEthCtp(TapiEthEthCtpPac ethCtp) {
    this.ethCtp = ethCtp;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TapiEthEthConnectionEndPointSpec tapiEthEthConnectionEndPointSpec = (TapiEthEthConnectionEndPointSpec) o;
    return Objects.equals(this.ethTerm, tapiEthEthConnectionEndPointSpec.ethTerm) &&
        Objects.equals(this.etyTerm, tapiEthEthConnectionEndPointSpec.etyTerm) &&
        Objects.equals(this.ethCtp, tapiEthEthConnectionEndPointSpec.ethCtp);
  }

  @Override
  public int hashCode() {
    return Objects.hash(ethTerm, etyTerm, ethCtp);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TapiEthEthConnectionEndPointSpec {\n");
    
    sb.append("    ethTerm: ").append(toIndentedString(ethTerm)).append("\n");
    sb.append("    etyTerm: ").append(toIndentedString(etyTerm)).append("\n");
    sb.append("    ethCtp: ").append(toIndentedString(ethCtp)).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    ");
  }
}

