com.pulumi.kubernetes.apps.v1beta1.outputs.StatefulSetUpdateStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.kubernetes.apps.v1beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.apps.v1beta1.outputs.RollingUpdateStatefulSetStrategy;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StatefulSetUpdateStrategy {
/**
* @return RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
*
*/
private @Nullable RollingUpdateStatefulSetStrategy rollingUpdate;
/**
* @return Type indicates the type of the StatefulSetUpdateStrategy.
*
*/
private @Nullable String type;
private StatefulSetUpdateStrategy() {}
/**
* @return RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
*
*/
public Optional rollingUpdate() {
return Optional.ofNullable(this.rollingUpdate);
}
/**
* @return Type indicates the type of the StatefulSetUpdateStrategy.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StatefulSetUpdateStrategy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable RollingUpdateStatefulSetStrategy rollingUpdate;
private @Nullable String type;
public Builder() {}
public Builder(StatefulSetUpdateStrategy defaults) {
Objects.requireNonNull(defaults);
this.rollingUpdate = defaults.rollingUpdate;
this.type = defaults.type;
}
@CustomType.Setter
public Builder rollingUpdate(@Nullable RollingUpdateStatefulSetStrategy rollingUpdate) {
this.rollingUpdate = rollingUpdate;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public StatefulSetUpdateStrategy build() {
final var _resultValue = new StatefulSetUpdateStrategy();
_resultValue.rollingUpdate = rollingUpdate;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy