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

io.kubernetes.client.openapi.models.VersionInfoBuilder Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
public class VersionInfoBuilder extends VersionInfoFluent implements VisitableBuilder{
  public VersionInfoBuilder() {
    this(new VersionInfo());
  }
  
  public VersionInfoBuilder(VersionInfoFluent fluent) {
    this(fluent, new VersionInfo());
  }
  
  public VersionInfoBuilder(VersionInfoFluent fluent,VersionInfo instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public VersionInfoBuilder(VersionInfo instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  VersionInfoFluent fluent;
  
  public VersionInfo build() {
    VersionInfo buildable = new VersionInfo();
    buildable.setBuildDate(fluent.getBuildDate());
    buildable.setCompiler(fluent.getCompiler());
    buildable.setGitCommit(fluent.getGitCommit());
    buildable.setGitTreeState(fluent.getGitTreeState());
    buildable.setGitVersion(fluent.getGitVersion());
    buildable.setGoVersion(fluent.getGoVersion());
    buildable.setMajor(fluent.getMajor());
    buildable.setMinor(fluent.getMinor());
    buildable.setPlatform(fluent.getPlatform());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy