com.pulumi.kubernetes.rbac.v1.outputs.SubjectPatch 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.rbac.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 SubjectPatch {
/**
* @return APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
*
*/
private @Nullable String apiGroup;
/**
* @return Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
*
*/
private @Nullable String kind;
/**
* @return Name of the object being referenced.
*
*/
private @Nullable String name;
/**
* @return Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
*
*/
private @Nullable String namespace;
private SubjectPatch() {}
/**
* @return APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
*
*/
public Optional apiGroup() {
return Optional.ofNullable(this.apiGroup);
}
/**
* @return Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Name of the object being referenced.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
*
*/
public Optional namespace() {
return Optional.ofNullable(this.namespace);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SubjectPatch 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(SubjectPatch 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 SubjectPatch build() {
final var _resultValue = new SubjectPatch();
_resultValue.apiGroup = apiGroup;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.namespace = namespace;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy