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

com.mypurecloud.sdk.model.FieldList Maven / Gradle / Ivy

The newest version!
package com.mypurecloud.sdk.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import java.io.Serializable;
/**
 * FieldList
 */

public class FieldList  implements Serializable {
  
  private Boolean customLabels = null;
  private String instructionText = null;
  private String key = null;
  private List labelKeys = new ArrayList();
  private Map params = new HashMap();
  private Boolean repeatable = null;
  private String state = null;
  private String type = null;
  private Boolean required = null;

  
  /**
   **/
  public FieldList customLabels(Boolean customLabels) {
    this.customLabels = customLabels;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("customLabels")
  public Boolean getCustomLabels() {
    return customLabels;
  }
  public void setCustomLabels(Boolean customLabels) {
    this.customLabels = customLabels;
  }


  /**
   **/
  public FieldList instructionText(String instructionText) {
    this.instructionText = instructionText;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("instructionText")
  public String getInstructionText() {
    return instructionText;
  }
  public void setInstructionText(String instructionText) {
    this.instructionText = instructionText;
  }


  /**
   **/
  public FieldList key(String key) {
    this.key = key;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("key")
  public String getKey() {
    return key;
  }
  public void setKey(String key) {
    this.key = key;
  }


  /**
   **/
  public FieldList labelKeys(List labelKeys) {
    this.labelKeys = labelKeys;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("labelKeys")
  public List getLabelKeys() {
    return labelKeys;
  }
  public void setLabelKeys(List labelKeys) {
    this.labelKeys = labelKeys;
  }


  /**
   **/
  public FieldList params(Map params) {
    this.params = params;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("params")
  public Map getParams() {
    return params;
  }
  public void setParams(Map params) {
    this.params = params;
  }


  /**
   **/
  public FieldList repeatable(Boolean repeatable) {
    this.repeatable = repeatable;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("repeatable")
  public Boolean getRepeatable() {
    return repeatable;
  }
  public void setRepeatable(Boolean repeatable) {
    this.repeatable = repeatable;
  }


  /**
   **/
  public FieldList state(String state) {
    this.state = state;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("state")
  public String getState() {
    return state;
  }
  public void setState(String state) {
    this.state = state;
  }


  /**
   **/
  public FieldList type(String type) {
    this.type = type;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("type")
  public String getType() {
    return type;
  }
  public void setType(String type) {
    this.type = type;
  }


  /**
   **/
  public FieldList required(Boolean required) {
    this.required = required;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("required")
  public Boolean getRequired() {
    return required;
  }
  public void setRequired(Boolean required) {
    this.required = required;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FieldList fieldList = (FieldList) o;
    return Objects.equals(this.customLabels, fieldList.customLabels) &&
        Objects.equals(this.instructionText, fieldList.instructionText) &&
        Objects.equals(this.key, fieldList.key) &&
        Objects.equals(this.labelKeys, fieldList.labelKeys) &&
        Objects.equals(this.params, fieldList.params) &&
        Objects.equals(this.repeatable, fieldList.repeatable) &&
        Objects.equals(this.state, fieldList.state) &&
        Objects.equals(this.type, fieldList.type) &&
        Objects.equals(this.required, fieldList.required);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customLabels, instructionText, key, labelKeys, params, repeatable, state, type, required);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FieldList {\n");
    
    sb.append("    customLabels: ").append(toIndentedString(customLabels)).append("\n");
    sb.append("    instructionText: ").append(toIndentedString(instructionText)).append("\n");
    sb.append("    key: ").append(toIndentedString(key)).append("\n");
    sb.append("    labelKeys: ").append(toIndentedString(labelKeys)).append("\n");
    sb.append("    params: ").append(toIndentedString(params)).append("\n");
    sb.append("    repeatable: ").append(toIndentedString(repeatable)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    required: ").append(toIndentedString(required)).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