com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesResourcesPatch Maven / Gradle / Ivy
// *** 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.resource.v1alpha2.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesInstancePatch;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class NamedResourcesResourcesPatch {
/**
* @return The list of all individual resources instances currently available.
*
*/
private @Nullable List instances;
private NamedResourcesResourcesPatch() {}
/**
* @return The list of all individual resources instances currently available.
*
*/
public List instances() {
return this.instances == null ? List.of() : this.instances;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NamedResourcesResourcesPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List instances;
public Builder() {}
public Builder(NamedResourcesResourcesPatch defaults) {
Objects.requireNonNull(defaults);
this.instances = defaults.instances;
}
@CustomType.Setter
public Builder instances(@Nullable List instances) {
this.instances = instances;
return this;
}
public Builder instances(NamedResourcesInstancePatch... instances) {
return instances(List.of(instances));
}
public NamedResourcesResourcesPatch build() {
final var _resultValue = new NamedResourcesResourcesPatch();
_resultValue.instances = instances;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy