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

org.finra.herd.sdk.model.BusinessObjectFormatUpdateRequest Maven / Gradle / Ivy

There is a newer version: 0.160.0
Show newest version
/*
 * herd-external
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * OpenAPI spec version: 0.125.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.finra.herd.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.finra.herd.sdk.model.Attribute;
import org.finra.herd.sdk.model.Schema;

/**
 * BusinessObjectFormatUpdateRequest
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class BusinessObjectFormatUpdateRequest {
  @JsonProperty("description")
  private String description = null;

  @JsonProperty("documentSchema")
  private String documentSchema = null;

  @JsonProperty("documentSchemaUrl")
  private String documentSchemaUrl = null;

  @JsonProperty("attributes")
  private List attributes = null;

  @JsonProperty("schema")
  private Schema schema = null;

  public BusinessObjectFormatUpdateRequest description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Description of the Business Object Format
   * @return description
  **/
  @ApiModelProperty(value = "Description of the Business Object Format")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public BusinessObjectFormatUpdateRequest documentSchema(String documentSchema) {
    this.documentSchema = documentSchema;
    return this;
  }

   /**
   * The schema for document-style business object data registered with Herd. The schema allows the publisher to perform                   self-service validation of incoming data when registering business object data. It also allows the consumers to perform self-service                   downstream actions like hydrating objects when consuming business object data. The documentSchema is optional. Currently any documentSchema is                   accepted. Its content is not validated                
   * @return documentSchema
  **/
  @ApiModelProperty(value = "The schema for document-style business object data registered with Herd. The schema allows the publisher to perform                   self-service validation of incoming data when registering business object data. It also allows the consumers to perform self-service                   downstream actions like hydrating objects when consuming business object data. The documentSchema is optional. Currently any documentSchema is                   accepted. Its content is not validated                ")
  public String getDocumentSchema() {
    return documentSchema;
  }

  public void setDocumentSchema(String documentSchema) {
    this.documentSchema = documentSchema;
  }

  public BusinessObjectFormatUpdateRequest documentSchemaUrl(String documentSchemaUrl) {
    this.documentSchemaUrl = documentSchemaUrl;
    return this;
  }

   /**
   * An optional URL of the documentSchema to an externally hosted XSD or JSON. Herd will not access this URL,                   it will simply store and retrieve the URL and teams can then access the URL                
   * @return documentSchemaUrl
  **/
  @ApiModelProperty(value = "An optional URL of the documentSchema to an externally hosted XSD or JSON. Herd will not access this URL,                   it will simply store and retrieve the URL and teams can then access the URL                ")
  public String getDocumentSchemaUrl() {
    return documentSchemaUrl;
  }

  public void setDocumentSchemaUrl(String documentSchemaUrl) {
    this.documentSchemaUrl = documentSchemaUrl;
  }

  public BusinessObjectFormatUpdateRequest attributes(List attributes) {
    this.attributes = attributes;
    return this;
  }

  public BusinessObjectFormatUpdateRequest addAttributesItem(Attribute attributesItem) {
    if (this.attributes == null) {
      this.attributes = new ArrayList();
    }
    this.attributes.add(attributesItem);
    return this;
  }

   /**
   * Custom user-defined metadata associated with this Business Object Format. \"name\" is the attribute name (i.e. the key) and                   \"value\" is the attribute value                
   * @return attributes
  **/
  @ApiModelProperty(value = "Custom user-defined metadata associated with this Business Object Format. \"name\" is the attribute name (i.e. the key) and                   \"value\" is the attribute value                ")
  public List getAttributes() {
    return attributes;
  }

  public void setAttributes(List attributes) {
    this.attributes = attributes;
  }

  public BusinessObjectFormatUpdateRequest schema(Schema schema) {
    this.schema = schema;
    return this;
  }

   /**
   * Get schema
   * @return schema
  **/
  @ApiModelProperty(value = "")
  public Schema getSchema() {
    return schema;
  }

  public void setSchema(Schema schema) {
    this.schema = schema;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BusinessObjectFormatUpdateRequest businessObjectFormatUpdateRequest = (BusinessObjectFormatUpdateRequest) o;
    return Objects.equals(this.description, businessObjectFormatUpdateRequest.description) &&
        Objects.equals(this.documentSchema, businessObjectFormatUpdateRequest.documentSchema) &&
        Objects.equals(this.documentSchemaUrl, businessObjectFormatUpdateRequest.documentSchemaUrl) &&
        Objects.equals(this.attributes, businessObjectFormatUpdateRequest.attributes) &&
        Objects.equals(this.schema, businessObjectFormatUpdateRequest.schema);
  }

  @Override
  public int hashCode() {
    return Objects.hash(description, documentSchema, documentSchemaUrl, attributes, schema);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BusinessObjectFormatUpdateRequest {\n");
    
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    documentSchema: ").append(toIndentedString(documentSchema)).append("\n");
    sb.append("    documentSchemaUrl: ").append(toIndentedString(documentSchemaUrl)).append("\n");
    sb.append("    attributes: ").append(toIndentedString(attributes)).append("\n");
    sb.append("    schema: ").append(toIndentedString(schema)).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