com.pulumi.kubernetes.networking.v1.outputs.IngressClassParametersReferencePatch 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 java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IngressClassParametersReferencePatch {
/**
* @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 @Nullable String kind;
/**
* @return name is the name of resource being referenced.
*
*/
private @Nullable 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 IngressClassParametersReferencePatch() {}
/**
* @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 Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return name is the name of resource being referenced.
*
*/
public Optional name() {
return Optional.ofNullable(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(IngressClassParametersReferencePatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String apiGroup;
private @Nullable String kind;
private @Nullable String name;
private @Nullable String namespace;
private @Nullable String scope;
public Builder() {}
public Builder(IngressClassParametersReferencePatch 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(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String 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 IngressClassParametersReferencePatch build() {
final var _resultValue = new IngressClassParametersReferencePatch();
_resultValue.apiGroup = apiGroup;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.namespace = namespace;
_resultValue.scope = scope;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy