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

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

package io.fabric8.kubernetes.api.model;

import java.lang.Integer;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;

 /**
  * Generated
  */
public class ContainerStateTerminatedFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.ContainerStateTerminatedFluent{
  public ContainerStateTerminatedFluentImpl() {
  }
  public ContainerStateTerminatedFluentImpl(io.fabric8.kubernetes.api.model.ContainerStateTerminated instance) {
    this.withContainerID(instance.getContainerID()); 
    this.withExitCode(instance.getExitCode()); 
    this.withFinishedAt(instance.getFinishedAt()); 
    this.withMessage(instance.getMessage()); 
    this.withReason(instance.getReason()); 
    this.withSignal(instance.getSignal()); 
    this.withStartedAt(instance.getStartedAt()); 
    this.withAdditionalProperties(instance.getAdditionalProperties());

  }
  private java.lang.String containerID;
  private java.lang.Integer exitCode;
  private java.lang.String finishedAt;
  private java.lang.String message;
  private java.lang.String reason;
  private java.lang.Integer signal;
  private java.lang.String startedAt;
  private java.util.Map additionalProperties;
  public java.lang.String getContainerID() {
    return this.containerID;
  }
  public A withContainerID(java.lang.String containerID) {
    this.containerID=containerID; return (A) this;
  }
  public java.lang.Boolean hasContainerID() {
    return this.containerID != null;
  }
  
  /**
   * Method is deprecated. use withContainerID instead.
   */
  @java.lang.Deprecated
  public A withNewContainerID(java.lang.String arg0) {
    return (A)withContainerID(new String(arg0));
  }
  public java.lang.Integer getExitCode() {
    return this.exitCode;
  }
  public A withExitCode(java.lang.Integer exitCode) {
    this.exitCode=exitCode; return (A) this;
  }
  public java.lang.Boolean hasExitCode() {
    return this.exitCode != null;
  }
  public java.lang.String getFinishedAt() {
    return this.finishedAt;
  }
  public A withFinishedAt(java.lang.String finishedAt) {
    this.finishedAt=finishedAt; return (A) this;
  }
  public java.lang.Boolean hasFinishedAt() {
    return this.finishedAt != null;
  }
  
  /**
   * Method is deprecated. use withFinishedAt instead.
   */
  @java.lang.Deprecated
  public A withNewFinishedAt(java.lang.String arg0) {
    return (A)withFinishedAt(new String(arg0));
  }
  public java.lang.String getMessage() {
    return this.message;
  }
  public A withMessage(java.lang.String message) {
    this.message=message; return (A) this;
  }
  public java.lang.Boolean hasMessage() {
    return this.message != null;
  }
  
  /**
   * Method is deprecated. use withMessage instead.
   */
  @java.lang.Deprecated
  public A withNewMessage(java.lang.String arg0) {
    return (A)withMessage(new String(arg0));
  }
  public java.lang.String getReason() {
    return this.reason;
  }
  public A withReason(java.lang.String reason) {
    this.reason=reason; return (A) this;
  }
  public java.lang.Boolean hasReason() {
    return this.reason != null;
  }
  
  /**
   * Method is deprecated. use withReason instead.
   */
  @java.lang.Deprecated
  public A withNewReason(java.lang.String arg0) {
    return (A)withReason(new String(arg0));
  }
  public java.lang.Integer getSignal() {
    return this.signal;
  }
  public A withSignal(java.lang.Integer signal) {
    this.signal=signal; return (A) this;
  }
  public java.lang.Boolean hasSignal() {
    return this.signal != null;
  }
  public java.lang.String getStartedAt() {
    return this.startedAt;
  }
  public A withStartedAt(java.lang.String startedAt) {
    this.startedAt=startedAt; return (A) this;
  }
  public java.lang.Boolean hasStartedAt() {
    return this.startedAt != null;
  }
  
  /**
   * Method is deprecated. use withStartedAt instead.
   */
  @java.lang.Deprecated
  public A withNewStartedAt(java.lang.String arg0) {
    return (A)withStartedAt(new String(arg0));
  }
  public A addToAdditionalProperties(java.lang.String key,java.lang.Object value) {
    if(this.additionalProperties == null && key != null && value != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (A)this;
  }
  public A addToAdditionalProperties(java.util.Map map) {
    if(this.additionalProperties == null && map != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
    if(map != null) { this.additionalProperties.putAll(map);} return (A)this;
  }
  public A removeFromAdditionalProperties(java.lang.String key) {
    if(this.additionalProperties == null) { return (A) this; }
    if(key != null && this.additionalProperties != null) {this.additionalProperties.remove(key);} return (A)this;
  }
  public A removeFromAdditionalProperties(java.util.Map map) {
    if(this.additionalProperties == null) { return (A) this; }
    if(map != null) { for(Object key : map.keySet()) {if (this.additionalProperties != null){this.additionalProperties.remove(key);}}} return (A)this;
  }
  public java.util.Map getAdditionalProperties() {
    return this.additionalProperties;
  }
  public A withAdditionalProperties(java.util.Map additionalProperties) {
    if (additionalProperties == null) { this.additionalProperties =  null;} else {this.additionalProperties = new java.util.LinkedHashMap(additionalProperties);} return (A) this;
  }
  public java.lang.Boolean hasAdditionalProperties() {
    return this.additionalProperties != null;
  }
  public boolean equals(java.lang.Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    ContainerStateTerminatedFluentImpl that = (ContainerStateTerminatedFluentImpl) o;
    if (containerID != null ? !containerID.equals(that.containerID) :that.containerID != null) return false;
    if (exitCode != null ? !exitCode.equals(that.exitCode) :that.exitCode != null) return false;
    if (finishedAt != null ? !finishedAt.equals(that.finishedAt) :that.finishedAt != null) return false;
    if (message != null ? !message.equals(that.message) :that.message != null) return false;
    if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false;
    if (signal != null ? !signal.equals(that.signal) :that.signal != null) return false;
    if (startedAt != null ? !startedAt.equals(that.startedAt) :that.startedAt != null) return false;
    if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(containerID,  exitCode,  finishedAt,  message,  reason,  signal,  startedAt,  additionalProperties,  super.hashCode());
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy