/*
 * Openmoney API
 * Openmoney API
 *
 * OpenAPI spec version: 2.0.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.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package io.swagger.client.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * ApplicationRequest
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-10T19:09:12.450Z")
public class ApplicationRequest {
  @SerializedName("application_name")
  private String applicationName = null;

  @SerializedName("homepage_uri")
  private String homepageUri = null;

  @SerializedName("application_description")
  private String applicationDescription = null;

  @SerializedName("authorization_callback_uri")
  private String authorizationCallbackUri = null;

  public ApplicationRequest applicationName(String applicationName) {
    this.applicationName = applicationName;
    return this;
  }

   /**
   * Applications Name
   * @return applicationName
  **/
  @ApiModelProperty(example = "null", required = true, value = "Applications Name")
  public String getApplicationName() {
    return applicationName;
  }

  public void setApplicationName(String applicationName) {
    this.applicationName = applicationName;
  }

  public ApplicationRequest homepageUri(String homepageUri) {
    this.homepageUri = homepageUri;
    return this;
  }

   /**
   * Applications home page
   * @return homepageUri
  **/
  @ApiModelProperty(example = "null", required = true, value = "Applications home page")
  public String getHomepageUri() {
    return homepageUri;
  }

  public void setHomepageUri(String homepageUri) {
    this.homepageUri = homepageUri;
  }

  public ApplicationRequest applicationDescription(String applicationDescription) {
    this.applicationDescription = applicationDescription;
    return this;
  }

   /**
   * Application Description
   * @return applicationDescription
  **/
  @ApiModelProperty(example = "null", value = "Application Description")
  public String getApplicationDescription() {
    return applicationDescription;
  }

  public void setApplicationDescription(String applicationDescription) {
    this.applicationDescription = applicationDescription;
  }

  public ApplicationRequest authorizationCallbackUri(String authorizationCallbackUri) {
    this.authorizationCallbackUri = authorizationCallbackUri;
    return this;
  }

   /**
   * Callback url after authorization.
   * @return authorizationCallbackUri
  **/
  @ApiModelProperty(example = "null", required = true, value = "Callback url after authorization.")
  public String getAuthorizationCallbackUri() {
    return authorizationCallbackUri;
  }

  public void setAuthorizationCallbackUri(String authorizationCallbackUri) {
    this.authorizationCallbackUri = authorizationCallbackUri;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApplicationRequest applicationRequest = (ApplicationRequest) o;
    return Objects.equals(this.applicationName, applicationRequest.applicationName) &&
        Objects.equals(this.homepageUri, applicationRequest.homepageUri) &&
        Objects.equals(this.applicationDescription, applicationRequest.applicationDescription) &&
        Objects.equals(this.authorizationCallbackUri, applicationRequest.authorizationCallbackUri);
  }

  @Override
  public int hashCode() {
    return Objects.hash(applicationName, homepageUri, applicationDescription, authorizationCallbackUri);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApplicationRequest {\n");
    
    sb.append("    applicationName: ").append(toIndentedString(applicationName)).append("\n");
    sb.append("    homepageUri: ").append(toIndentedString(homepageUri)).append("\n");
    sb.append("    applicationDescription: ").append(toIndentedString(applicationDescription)).append("\n");
    sb.append("    authorizationCallbackUri: ").append(toIndentedString(authorizationCallbackUri)).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    ");
  }
  
}

