com.pulumi.kubernetes.networking.v1.outputs.IngressClassParametersReference 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.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IngressClassParametersReference {
/**
* @return apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
*
*/
private @Nullable String apiGroup;
/**
* @return kind is the type of resource being referenced.
*
*/
private String kind;
/**
* @return name is the name of resource being referenced.
*
*/
private String name;
/**
* @return namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster".
*
*/
private @Nullable String namespace;
/**
* @return scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace".
*
*/
private @Nullable String scope;
private IngressClassParametersReference() {}
/**
* @return apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
*
*/
public Optional apiGroup() {
return Optional.ofNullable(this.apiGroup);
}
/**
* @return kind is the type of resource being referenced.
*
*/
public String kind() {
return this.kind;
}
/**
* @return name is the name of resource being referenced.
*
*/
public String name() {
return this.name;
}
/**
* @return namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster".
*
*/
public Optional namespace() {
return Optional.ofNullable(this.namespace);
}
/**
* @return scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace".
*
*/
public Optional scope() {
return Optional.ofNullable(this.scope);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IngressClassParametersReference defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String apiGroup;
private String kind;
private String name;
private @Nullable String namespace;
private @Nullable String scope;
public Builder() {}
public Builder(IngressClassParametersReference defaults) {
Objects.requireNonNull(defaults);
this.apiGroup = defaults.apiGroup;
this.kind = defaults.kind;
this.name = defaults.name;
this.namespace = defaults.namespace;
this.scope = defaults.scope;
}
@CustomType.Setter
public Builder apiGroup(@Nullable String apiGroup) {
this.apiGroup = apiGroup;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("IngressClassParametersReference", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("IngressClassParametersReference", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder namespace(@Nullable String namespace) {
this.namespace = namespace;
return this;
}
@CustomType.Setter
public Builder scope(@Nullable String scope) {
this.scope = scope;
return this;
}
public IngressClassParametersReference build() {
final var _resultValue = new IngressClassParametersReference();
_resultValue.apiGroup = apiGroup;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.namespace = namespace;
_resultValue.scope = scope;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy