All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blackducksoftware.integration.hub.model.UserView Maven / Gradle / Ivy

There is a newer version: 3.4.2.1
Show newest version
/**
 * hub-model-common
 *
 * Copyright (C) 2017 Black Duck Software, Inc.
 * http://www.blackducksoftware.com/
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you 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.
 */
/*
 * 
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * 
 * 
 *
 * 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.blackducksoftware.integration.hub.model;

import java.util.Objects;

import com.blackducksoftware.integration.hub.model.HubView;
import com.blackducksoftware.integration.hub.model.MetadataView;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * UserView
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class UserView extends HubView {
  @SerializedName("active")
  private Boolean active = null;

  @SerializedName("email")
  private String email = null;

  @SerializedName("externalUserName")
  private String externalUserName = null;

  @SerializedName("firstName")
  private String firstName = null;

  @SerializedName("lastName")
  private String lastName = null;

  @SerializedName("type")
  private String type = null;

  @SerializedName("userName")
  private String userName = null;

  public UserView active(Boolean active) {
    this.active = active;
    return this;
  }

   /**
   * The active status of the user.
   * @return active
  **/
  @ApiModelProperty(example = "null", required = true, value = "The active status of the user.")
  public Boolean getActive() {
    return active;
  }

  public void setActive(Boolean active) {
    this.active = active;
  }

  public UserView email(String email) {
    this.email = email;
    return this;
  }

   /**
   * The email of the user. Can't be modified for an external users from Hub
   * @return email
  **/
  @ApiModelProperty(example = "null", required = true, value = "The email of the user. Can't be modified for an external users from Hub")
  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public UserView externalUserName(String externalUserName) {
    this.externalUserName = externalUserName;
    return this;
  }

   /**
   * The external name of the user. This will have a value if the type is EXTERNAL. Can't be modified for an external users from Hub
   * @return externalUserName
  **/
  @ApiModelProperty(example = "null", required = true, value = "The external name of the user. This will have a value if the type is EXTERNAL. Can't be modified for an external users from Hub")
  public String getExternalUserName() {
    return externalUserName;
  }

  public void setExternalUserName(String externalUserName) {
    this.externalUserName = externalUserName;
  }

  public UserView firstName(String firstName) {
    this.firstName = firstName;
    return this;
  }

   /**
   * The first name of the user. Can't be modified for an external users from Hub
   * @return firstName
  **/
  @ApiModelProperty(example = "null", required = true, value = "The first name of the user. Can't be modified for an external users from Hub")
  public String getFirstName() {
    return firstName;
  }

  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }

  public UserView lastName(String lastName) {
    this.lastName = lastName;
    return this;
  }

   /**
   * The last name of the user. Can't be modified for an external users from Hub
   * @return lastName
  **/
  @ApiModelProperty(example = "null", required = true, value = "The last name of the user. Can't be modified for an external users from Hub")
  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }

  public UserView type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The type of the user. Whether INTERNAL or EXTERNAL
   * @return type
  **/
  @ApiModelProperty(example = "null", required = true, value = "The type of the user. Whether INTERNAL or EXTERNAL")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public UserView userName(String userName) {
    this.userName = userName;
    return this;
  }

   /**
   * The name of the user
   * @return userName
  **/
  @ApiModelProperty(example = "null", required = true, value = "The name of the user")
  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserView userView = (UserView) o;
    return Objects.equals(this.active, userView.active) &&
        Objects.equals(this.email, userView.email) &&
        Objects.equals(this.externalUserName, userView.externalUserName) &&
        Objects.equals(this.firstName, userView.firstName) &&
        Objects.equals(this.lastName, userView.lastName) &&
        Objects.equals(this.type, userView.type) &&
        Objects.equals(this.userName, userView.userName) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(active, email, externalUserName, firstName, lastName, type, userName, super.hashCode());
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserView {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    active: ").append(toIndentedString(active)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    externalUserName: ").append(toIndentedString(externalUserName)).append("\n");
    sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
    sb.append("    lastName: ").append(toIndentedString(lastName)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    userName: ").append(toIndentedString(userName)).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    ");
  }
  
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy