public BuildCause(Build build) { if (build == null || build.getMetadata() == null) { return; } ObjectMeta meta = build.getMetadata(); uid = meta.getUid(); namespace = meta.getNamespace(); name = meta.getName(); if (build.getSpec() != null) { if (build.getSpec().getSource() != null && build.getSpec().getSource().getGit() != null) { GitBuildSource git = build.getSpec().getSource().getGit(); gitUri = git.getUri(); } if (build.getSpec().getRevision() != null && build.getSpec().getRevision().getGit() != null) { commit = build.getSpec().getRevision().getGit().getCommit(); } } }
public BuildFluentImpl(Build instance){ this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); }
public BuildBuilder( BuildFluent<?> fluent , Build instance ){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); fluent.withStatus(instance.getStatus()); } public BuildBuilder( Build instance ){
public BuildBuilder( BuildFluent<?> fluent , Build instance ){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); fluent.withStatus(instance.getStatus()); } public BuildBuilder( Build instance ){
public BuildBuilder(BuildFluent<?> fluent,Build instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); fluent.withStatus(instance.getStatus()); this.validationEnabled = validationEnabled; } public BuildBuilder(Build instance){
public BuildBuilder(Build instance,Boolean validationEnabled){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); this.validationEnabled = validationEnabled; }
public BuildBuilder( Build instance ){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); }
public BuildBuilder( Build instance ){ this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus()); }