public DeploymentStrategy build(){ DeploymentStrategy buildable = new DeploymentStrategy(fluent.getAnnotations(),fluent.getCustomParams(),fluent.getLabels(),fluent.getRecreateParams(),fluent.getResources(),fluent.getRollingParams(),fluent.getType()); validate(buildable); return buildable; }
public ResourcesNested<T> editResources(){ return withNewResourcesLike(getResources()); } public RollingDeploymentStrategyParams getRollingParams(){
public RecreateParamsNested<T> editRecreateParams(){ return withNewRecreateParamsLike(getRecreateParams()); } public ResourceRequirements getResources(){
public CustomParamsNested<T> editCustomParams(){ return withNewCustomParamsLike(getCustomParams()); } public RecreateDeploymentStrategyParams getRecreateParams(){
public DeploymentStrategyBuilder(DeploymentStrategyFluent<?> fluent,DeploymentStrategy instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withAnnotations(instance.getAnnotations()); fluent.withCustomParams(instance.getCustomParams()); fluent.withLabels(instance.getLabels()); fluent.withRecreateParams(instance.getRecreateParams()); fluent.withResources(instance.getResources()); fluent.withRollingParams(instance.getRollingParams()); fluent.withType(instance.getType()); this.validationEnabled = validationEnabled; } public DeploymentStrategyBuilder(DeploymentStrategy instance){
public DeploymentStrategy build(){ DeploymentStrategy buildable = new DeploymentStrategy(fluent.getCustomParams(),fluent.getRecreateParams(),fluent.getResources(),fluent.getRollingParams(),fluent.getType()); validate(buildable); return buildable; }
public DeploymentStrategyBuilder( DeploymentStrategyFluent<?> fluent , DeploymentStrategy instance ){ this.fluent = fluent; fluent.withCustomParams(instance.getCustomParams()); fluent.withRecreateParams(instance.getRecreateParams()); fluent.withResources(instance.getResources()); fluent.withRollingParams(instance.getRollingParams()); fluent.withType(instance.getType()); } public DeploymentStrategyBuilder( DeploymentStrategy instance ){
public DeploymentStrategy build(){ DeploymentStrategy buildable = new DeploymentStrategy(fluent.getCustomParams(),fluent.getRecreateParams(),fluent.getResources(),fluent.getRollingParams(),fluent.getType()); validate(buildable); return buildable; }
public DeploymentStrategyBuilder( DeploymentStrategyFluent<?> fluent , DeploymentStrategy instance ){ this.fluent = fluent; fluent.withCustomParams(instance.getCustomParams()); fluent.withRecreateParams(instance.getRecreateParams()); fluent.withResources(instance.getResources()); fluent.withRollingParams(instance.getRollingParams()); fluent.withType(instance.getType()); } public DeploymentStrategyBuilder( DeploymentStrategy instance ){
public ResourcesNested<T> editResources(){ return withNewResourcesLike(getResources()); } public RollingDeploymentStrategyParams getRollingParams(){
public RecreateParamsNested<T> editRecreateParams(){ return withNewRecreateParamsLike(getRecreateParams()); } public ResourceRequirements getResources(){
public CustomParamsNested<T> editCustomParams(){ return withNewCustomParamsLike(getCustomParams()); } public RecreateDeploymentStrategyParams getRecreateParams(){