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

io.fabric8.kubernetes.api.model.GitRepoVolumeSourceFluentImpl Maven / Gradle / Ivy

There is a newer version: 7.0.1
Show newest version
package io.fabric8.kubernetes.api.model;

import java.lang.StringBuffer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.StringBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

public class GitRepoVolumeSourceFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements GitRepoVolumeSourceFluent{

    private String directory;
    private String repository;
    private String revision;

    public GitRepoVolumeSourceFluentImpl(){
    }
    public GitRepoVolumeSourceFluentImpl(GitRepoVolumeSource instance){
            this.withDirectory(instance.getDirectory()); 
            this.withRepository(instance.getRepository()); 
            this.withRevision(instance.getRevision()); 
    }

    public String getDirectory(){
            return this.directory;
    }

    public A withDirectory(String directory){
            this.directory=directory; return (A) this;
    }

    public Boolean hasDirectory(){
            return this.directory != null;
    }

    public A withNewDirectory(String arg1){
            return (A)withDirectory(new String(arg1));
    }

    public A withNewDirectory(StringBuilder arg1){
            return (A)withDirectory(new String(arg1));
    }

    public A withNewDirectory(StringBuffer arg1){
            return (A)withDirectory(new String(arg1));
    }

    public String getRepository(){
            return this.repository;
    }

    public A withRepository(String repository){
            this.repository=repository; return (A) this;
    }

    public Boolean hasRepository(){
            return this.repository != null;
    }

    public A withNewRepository(String arg1){
            return (A)withRepository(new String(arg1));
    }

    public A withNewRepository(StringBuilder arg1){
            return (A)withRepository(new String(arg1));
    }

    public A withNewRepository(StringBuffer arg1){
            return (A)withRepository(new String(arg1));
    }

    public String getRevision(){
            return this.revision;
    }

    public A withRevision(String revision){
            this.revision=revision; return (A) this;
    }

    public Boolean hasRevision(){
            return this.revision != null;
    }

    public A withNewRevision(String arg1){
            return (A)withRevision(new String(arg1));
    }

    public A withNewRevision(StringBuilder arg1){
            return (A)withRevision(new String(arg1));
    }

    public A withNewRevision(StringBuffer arg1){
            return (A)withRevision(new String(arg1));
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            GitRepoVolumeSourceFluentImpl that = (GitRepoVolumeSourceFluentImpl) o;
            if (directory != null ? !directory.equals(that.directory) :that.directory != null) return false;
            if (repository != null ? !repository.equals(that.repository) :that.repository != null) return false;
            if (revision != null ? !revision.equals(that.revision) :that.revision != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy