/*
 * ThingPark things management Devices API
 * REST interface for Devices management. 
 *
 * The version of the OpenAPI document: 7.3
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package lora.ns.actility.api.model.appserver;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * GRE tunnel settings Mandatory when mode is MIXED or DIRECT_IP Note: Only one
 * GRE tunnel can be defined
 */
@JsonPropertyOrder({ AppServersRoutingProfileCellularGreTunnelsInner.JSON_PROPERTY_PEER_ADDRESS })
@JsonTypeName("AppServersRoutingProfileCellular_greTunnels_inner")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-05-29T11:38:36.048437806+02:00[Europe/Paris]", comments = "Generator version: 7.6.0")
public class AppServersRoutingProfileCellularGreTunnelsInner {
  public static final String JSON_PROPERTY_PEER_ADDRESS = "peerAddress";
  private String peerAddress;

  public AppServersRoutingProfileCellularGreTunnelsInner() {
  }

  public AppServersRoutingProfileCellularGreTunnelsInner peerAddress(String peerAddress) {

    this.peerAddress = peerAddress;
    return this;
  }

  /**
   * GRE tunnel peer IPv4 address Syntax: IP Address
   * 
   * @return peerAddress
   **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_PEER_ADDRESS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getPeerAddress() {
    return peerAddress;
  }

  @JsonProperty(JSON_PROPERTY_PEER_ADDRESS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setPeerAddress(String peerAddress) {
    this.peerAddress = peerAddress;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AppServersRoutingProfileCellularGreTunnelsInner appServersRoutingProfileCellularGreTunnelsInner = (AppServersRoutingProfileCellularGreTunnelsInner) o;
    return Objects.equals(this.peerAddress, appServersRoutingProfileCellularGreTunnelsInner.peerAddress);
  }

  @Override
  public int hashCode() {
    return Objects.hash(peerAddress);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AppServersRoutingProfileCellularGreTunnelsInner {\n");
    sb.append("    peerAddress: ").append(toIndentedString(peerAddress)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
