/*
 * Avi avi_global_spec Object API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 20.1.1
 * Contact: [email protected]
 *
 * 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.vmware.avi.sdk.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.vmware.avi.sdk.model.HTTPLocalFile;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * FailActionHTTPLocalResponse
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2020-03-12T12:27:26.755+05:30[Asia/Kolkata]")
public class FailActionHTTPLocalResponse {
  @JsonProperty("file")
  private HTTPLocalFile file = null;

  @JsonProperty("status_code")
  private String statusCode = "FAIL_HTTP_STATUS_CODE_503";

  public FailActionHTTPLocalResponse file(HTTPLocalFile file) {
    this.file = file;
    return this;
  }

   /**
   * Get file
   * @return file
  **/
  @Schema(description = "")
  public HTTPLocalFile getFile() {
    return file;
  }

  public void setFile(HTTPLocalFile file) {
    this.file = file;
  }

  public FailActionHTTPLocalResponse statusCode(String statusCode) {
    this.statusCode = statusCode;
    return this;
  }

   /**
   *  Enum options - FAIL_HTTP_STATUS_CODE_200, FAIL_HTTP_STATUS_CODE_503.
   * @return statusCode
  **/
  @Schema(description = " Enum options - FAIL_HTTP_STATUS_CODE_200, FAIL_HTTP_STATUS_CODE_503.")
  public String getStatusCode() {
    return statusCode;
  }

  public void setStatusCode(String statusCode) {
    this.statusCode = statusCode;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FailActionHTTPLocalResponse failActionHTTPLocalResponse = (FailActionHTTPLocalResponse) o;
    return Objects.equals(this.file, failActionHTTPLocalResponse.file) &&
        Objects.equals(this.statusCode, failActionHTTPLocalResponse.statusCode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(file, statusCode);
  }


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

}