com.pulumi.kubernetes.networking.v1.outputs.IngressBackendPatch 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.networking.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.core.v1.outputs.TypedLocalObjectReferencePatch;
import com.pulumi.kubernetes.networking.v1.outputs.IngressServiceBackendPatch;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IngressBackendPatch {
/**
* @return resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service".
*
*/
private @Nullable TypedLocalObjectReferencePatch resource;
/**
* @return service references a service as a backend. This is a mutually exclusive setting with "Resource".
*
*/
private @Nullable IngressServiceBackendPatch service;
private IngressBackendPatch() {}
/**
* @return resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service".
*
*/
public Optional resource() {
return Optional.ofNullable(this.resource);
}
/**
* @return service references a service as a backend. This is a mutually exclusive setting with "Resource".
*
*/
public Optional service() {
return Optional.ofNullable(this.service);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IngressBackendPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable TypedLocalObjectReferencePatch resource;
private @Nullable IngressServiceBackendPatch service;
public Builder() {}
public Builder(IngressBackendPatch defaults) {
Objects.requireNonNull(defaults);
this.resource = defaults.resource;
this.service = defaults.service;
}
@CustomType.Setter
public Builder resource(@Nullable TypedLocalObjectReferencePatch resource) {
this.resource = resource;
return this;
}
@CustomType.Setter
public Builder service(@Nullable IngressServiceBackendPatch service) {
this.service = service;
return this;
}
public IngressBackendPatch build() {
final var _resultValue = new IngressBackendPatch();
_resultValue.resource = resource;
_resultValue.service = service;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy