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

com.akeyless.auth.swagger.model.GetItemReplyObj Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
/*
 * Auth - Application API
 * Auth manages access policies for services that need access policies management for their clients. Auth also issues temporary credentials for the services' clients and validates them for the services
 *
 * OpenAPI spec version: 1.0.2
 * 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.akeyless.auth.swagger.model;

import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * GetItemReplyObj
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-21T16:11:23.052+02:00")
public class GetItemReplyObj {
  @SerializedName("attached_value")
  private String attachedValue = null;

  @SerializedName("item_name")
  private String itemName = null;

  @SerializedName("item_roles")
  private List itemRoles = null;

  @SerializedName("item_size")
  private Long itemSize = null;

  @SerializedName("item_type")
  private String itemType = null;

  @SerializedName("last_version")
  private Integer lastVersion = null;

  @SerializedName("user_metadata")
  private String userMetadata = null;

  public GetItemReplyObj attachedValue(String attachedValue) {
    this.attachedValue = attachedValue;
    return this;
  }

   /**
   * Get attachedValue
   * @return attachedValue
  **/
  @ApiModelProperty(value = "")
  public String getAttachedValue() {
    return attachedValue;
  }

  public void setAttachedValue(String attachedValue) {
    this.attachedValue = attachedValue;
  }

  public GetItemReplyObj itemName(String itemName) {
    this.itemName = itemName;
    return this;
  }

   /**
   * Get itemName
   * @return itemName
  **/
  @ApiModelProperty(value = "")
  public String getItemName() {
    return itemName;
  }

  public void setItemName(String itemName) {
    this.itemName = itemName;
  }

  public GetItemReplyObj itemRoles(List itemRoles) {
    this.itemRoles = itemRoles;
    return this;
  }

  public GetItemReplyObj addItemRolesItem(String itemRolesItem) {
    if (this.itemRoles == null) {
      this.itemRoles = new ArrayList();
    }
    this.itemRoles.add(itemRolesItem);
    return this;
  }

   /**
   * Get itemRoles
   * @return itemRoles
  **/
  @ApiModelProperty(value = "")
  public List getItemRoles() {
    return itemRoles;
  }

  public void setItemRoles(List itemRoles) {
    this.itemRoles = itemRoles;
  }

  public GetItemReplyObj itemSize(Long itemSize) {
    this.itemSize = itemSize;
    return this;
  }

   /**
   * Get itemSize
   * @return itemSize
  **/
  @ApiModelProperty(value = "")
  public Long getItemSize() {
    return itemSize;
  }

  public void setItemSize(Long itemSize) {
    this.itemSize = itemSize;
  }

  public GetItemReplyObj itemType(String itemType) {
    this.itemType = itemType;
    return this;
  }

   /**
   * Get itemType
   * @return itemType
  **/
  @ApiModelProperty(value = "")
  public String getItemType() {
    return itemType;
  }

  public void setItemType(String itemType) {
    this.itemType = itemType;
  }

  public GetItemReplyObj lastVersion(Integer lastVersion) {
    this.lastVersion = lastVersion;
    return this;
  }

   /**
   * Get lastVersion
   * @return lastVersion
  **/
  @ApiModelProperty(value = "")
  public Integer getLastVersion() {
    return lastVersion;
  }

  public void setLastVersion(Integer lastVersion) {
    this.lastVersion = lastVersion;
  }

  public GetItemReplyObj userMetadata(String userMetadata) {
    this.userMetadata = userMetadata;
    return this;
  }

   /**
   * Get userMetadata
   * @return userMetadata
  **/
  @ApiModelProperty(value = "")
  public String getUserMetadata() {
    return userMetadata;
  }

  public void setUserMetadata(String userMetadata) {
    this.userMetadata = userMetadata;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetItemReplyObj getItemReplyObj = (GetItemReplyObj) o;
    return Objects.equals(this.attachedValue, getItemReplyObj.attachedValue) &&
        Objects.equals(this.itemName, getItemReplyObj.itemName) &&
        Objects.equals(this.itemRoles, getItemReplyObj.itemRoles) &&
        Objects.equals(this.itemSize, getItemReplyObj.itemSize) &&
        Objects.equals(this.itemType, getItemReplyObj.itemType) &&
        Objects.equals(this.lastVersion, getItemReplyObj.lastVersion) &&
        Objects.equals(this.userMetadata, getItemReplyObj.userMetadata);
  }

  @Override
  public int hashCode() {
    return Objects.hash(attachedValue, itemName, itemRoles, itemSize, itemType, lastVersion, userMetadata);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetItemReplyObj {\n");
    
    sb.append("    attachedValue: ").append(toIndentedString(attachedValue)).append("\n");
    sb.append("    itemName: ").append(toIndentedString(itemName)).append("\n");
    sb.append("    itemRoles: ").append(toIndentedString(itemRoles)).append("\n");
    sb.append("    itemSize: ").append(toIndentedString(itemSize)).append("\n");
    sb.append("    itemType: ").append(toIndentedString(itemType)).append("\n");
    sb.append("    lastVersion: ").append(toIndentedString(lastVersion)).append("\n");
    sb.append("    userMetadata: ").append(toIndentedString(userMetadata)).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