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

io.strimzi.api.kafka.model.connect.build.OtherArtifactFluent Maven / Gradle / Ivy

There is a newer version: 0.44.0
Show newest version
package io.strimzi.api.kafka.model.connect.build;

import java.lang.SuppressWarnings;
import java.lang.Object;
import java.lang.String;

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class OtherArtifactFluent> extends DownloadableArtifactFluent{
  public OtherArtifactFluent() {
  }
  
  public OtherArtifactFluent(OtherArtifact instance) {
    this.copyInstance(instance);
  }
  private String fileName;
  
  protected void copyInstance(OtherArtifact instance) {
    instance = (instance != null ? instance : new OtherArtifact());
    if (instance != null) {
          this.withFileName(instance.getFileName());
          this.withUrl(instance.getUrl());
          this.withSha512sum(instance.getSha512sum());
          this.withInsecure(instance.getInsecure());
        }
  }
  
  public String getFileName() {
    return this.fileName;
  }
  
  public A withFileName(String fileName) {
    this.fileName = fileName;
    return (A) this;
  }
  
  public boolean hasFileName() {
    return this.fileName != null;
  }
  
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    OtherArtifactFluent that = (OtherArtifactFluent) o;
    if (!java.util.Objects.equals(fileName, that.fileName)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(fileName,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (fileName != null) { sb.append("fileName:"); sb.append(fileName); }
    sb.append("}");
    return sb.toString();
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy