com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClassParametersReferencePatch 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.resource.v1alpha1.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 ResourceClassParametersReferencePatch {
/**
* @return APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
*
*/
private @Nullable String apiGroup;
/**
* @return Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
*
*/
private @Nullable String kind;
/**
* @return Name is the name of resource being referenced.
*
*/
private @Nullable String name;
/**
* @return Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
*
*/
private @Nullable String namespace;
private ResourceClassParametersReferencePatch() {}
/**
* @return APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
*
*/
public Optional apiGroup() {
return Optional.ofNullable(this.apiGroup);
}
/**
* @return Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
*
*/
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 that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
*
*/
public Optional namespace() {
return Optional.ofNullable(this.namespace);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourceClassParametersReferencePatch 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;
public Builder() {}
public Builder(ResourceClassParametersReferencePatch defaults) {
Objects.requireNonNull(defaults);
this.apiGroup = defaults.apiGroup;
this.kind = defaults.kind;
this.name = defaults.name;
this.namespace = defaults.namespace;
}
@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;
}
public ResourceClassParametersReferencePatch build() {
final var _resultValue = new ResourceClassParametersReferencePatch();
_resultValue.apiGroup = apiGroup;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.namespace = namespace;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy