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

annotations.io.alauda.kubernetes.api.model.PipelineRunLimitsFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
package io.alauda.kubernetes.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.Boolean;

public class PipelineRunLimitsFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements PipelineRunLimitsFluent{

    private Long failureCount;
    private Long successCount;

    public PipelineRunLimitsFluentImpl(){
    }
    public PipelineRunLimitsFluentImpl(PipelineRunLimits instance){
            this.withFailureCount(instance.getFailureCount()); 
            this.withSuccessCount(instance.getSuccessCount()); 
    }

    public Long getFailureCount(){
            return this.failureCount;
    }

    public A withFailureCount(Long failureCount){
            this.failureCount=failureCount; return (A) this;
    }

    public Boolean hasFailureCount(){
            return this.failureCount!=null;
    }

    public Long getSuccessCount(){
            return this.successCount;
    }

    public A withSuccessCount(Long successCount){
            this.successCount=successCount; return (A) this;
    }

    public Boolean hasSuccessCount(){
            return this.successCount!=null;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            PipelineRunLimitsFluentImpl that = (PipelineRunLimitsFluentImpl) o;
            if (failureCount != null ? !failureCount.equals(that.failureCount) :that.failureCount != null) return false;
            if (successCount != null ? !successCount.equals(that.successCount) :that.successCount != null) return false;
            return true;
    }




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy