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

io.honnix.rkt.launcher.model.schema.RuntimeImageBuilder Maven / Gradle / Ivy

package io.honnix.rkt.launcher.model.schema;

import io.honnix.rkt.launcher.model.schema.type.Label;
import io.norberg.automatter.AutoMatter;
import java.util.List;
import java.util.Optional;
import javax.annotation.Generated;

@Generated("io.norberg.automatter.processor.AutoMatterProcessor")
public final class RuntimeImageBuilder {
  private Optional name;

  private String id;

  private Optional> labels;

  public RuntimeImageBuilder() {
    this.name = Optional.empty();
    this.labels = Optional.empty();
  }

  private RuntimeImageBuilder(PodManifest.RuntimeImage v) {
    this.name = v.name();
    this.id = v.id();
    this.labels = v.labels();
  }

  private RuntimeImageBuilder(RuntimeImageBuilder v) {
    this.name = v.name;
    this.id = v.id;
    this.labels = v.labels;
  }

  public Optional name() {
    return name;
  }

  public RuntimeImageBuilder name(String name) {
    return name(Optional.ofNullable(name));
  }

  @SuppressWarnings("unchecked")
  public RuntimeImageBuilder name(Optional name) {
    if (name == null) {
      throw new NullPointerException("name");
    }
    this.name = (Optional)name;
    return this;
  }

  public String id() {
    return id;
  }

  public RuntimeImageBuilder id(String id) {
    if (id == null) {
      throw new NullPointerException("id");
    }
    this.id = id;
    return this;
  }

  public Optional> labels() {
    return labels;
  }

  public RuntimeImageBuilder labels(List




© 2015 - 2025 Weber Informatics LLC | Privacy Policy