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

io.strimzi.api.kafka.model.connect.build.OtherArtifactFluentImpl 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.Deprecated;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

  
  /**
   * Other artifact represents an artifact of assorted types. Users can specify a name of the file under which it will be
   * stored in the container image.
   */
  public class OtherArtifactFluentImpl> extends io.strimzi.api.kafka.model.connect.build.DownloadableArtifactFluentImpl implements io.strimzi.api.kafka.model.connect.build.OtherArtifactFluent {

    private java.lang.String fileName;

    public OtherArtifactFluentImpl() {
    }

    public OtherArtifactFluentImpl(io.strimzi.api.kafka.model.connect.build.OtherArtifact instance) {
        this.withFileName(instance.getFileName());
        
        this.withUrl(instance.getUrl());
        
        this.withSha512sum(instance.getSha512sum());
        
        this.withInsecure(instance.getInsecure());
    }

    public java.lang.String getFileName() {
        return this.fileName;
    }

    public A withFileName(java.lang.String fileName) {
        this.fileName=fileName; return (A) this;
    }

    public java.lang.Boolean hasFileName() {
        return this.fileName != null;
    }

    
    @java.lang.Deprecated
        
    /**
     * Method is deprecated. use withFileName instead.
     */
        public A withNewFileName(java.lang.String original) {
        return (A)withFileName(new String(original));
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        OtherArtifactFluentImpl that = (OtherArtifactFluentImpl) o;
        if (fileName != null ? !fileName.equals(that.fileName) :that.fileName != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(fileName,  super.hashCode());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy