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

com.bitmovin.api.sdk.model.CustomAttribute Maven / Gradle / Ivy

There is a newer version: 1.205.0
Show newest version
package com.bitmovin.api.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/**
 * CustomAttribute
 */

public class CustomAttribute {
  @JsonProperty("key")
  private String key;

  @JsonProperty("value")
  private String value;


  /**
   * unique string identifier for the custom attribute (required)
   * @return key
   */
  public String getKey() {
    return key;
  }

  /**
   * unique string identifier for the custom attribute (required)
   *
   * @param key
   *        unique string identifier for the custom attribute (required)
   */
  public void setKey(String key) {
    this.key = key;
  }


  /**
   * value of the custom attribute
   * @return value
   */
  public String getValue() {
    return value;
  }

  /**
   * value of the custom attribute
   *
   * @param value
   *        value of the custom attribute
   */
  public void setValue(String value) {
    this.value = value;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CustomAttribute customAttribute = (CustomAttribute) o;
    return Objects.equals(this.key, customAttribute.key) &&
        Objects.equals(this.value, customAttribute.value);
  }

  @Override
  public int hashCode() {
    return Objects.hash(key, value);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CustomAttribute {\n");
    
    sb.append("    key: ").append(toIndentedString(key)).append("\n");
    sb.append("    value: ").append(toIndentedString(value)).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