com.pulumi.kubernetes.rbac.v1.inputs.RoleRefArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* RoleRef contains information that points to the role being used
*
*/
public final class RoleRefArgs extends com.pulumi.resources.ResourceArgs {
public static final RoleRefArgs Empty = new RoleRefArgs();
/**
* APIGroup is the group for the resource being referenced
*
*/
@Import(name="apiGroup", required=true)
private Output apiGroup;
/**
* @return APIGroup is the group for the resource being referenced
*
*/
public Output apiGroup() {
return this.apiGroup;
}
/**
* Kind is the type of resource being referenced
*
*/
@Import(name="kind", required=true)
private Output kind;
/**
* @return Kind is the type of resource being referenced
*
*/
public Output kind() {
return this.kind;
}
/**
* Name is the name of resource being referenced
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Name is the name of resource being referenced
*
*/
public Output name() {
return this.name;
}
private RoleRefArgs() {}
private RoleRefArgs(RoleRefArgs $) {
this.apiGroup = $.apiGroup;
this.kind = $.kind;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RoleRefArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RoleRefArgs $;
public Builder() {
$ = new RoleRefArgs();
}
public Builder(RoleRefArgs defaults) {
$ = new RoleRefArgs(Objects.requireNonNull(defaults));
}
/**
* @param apiGroup APIGroup is the group for the resource being referenced
*
* @return builder
*
*/
public Builder apiGroup(Output apiGroup) {
$.apiGroup = apiGroup;
return this;
}
/**
* @param apiGroup APIGroup is the group for the resource being referenced
*
* @return builder
*
*/
public Builder apiGroup(String apiGroup) {
return apiGroup(Output.of(apiGroup));
}
/**
* @param kind Kind is the type of resource being referenced
*
* @return builder
*
*/
public Builder kind(Output kind) {
$.kind = kind;
return this;
}
/**
* @param kind Kind is the type of resource being referenced
*
* @return builder
*
*/
public Builder kind(String kind) {
return kind(Output.of(kind));
}
/**
* @param name Name is the name of resource being referenced
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Name is the name of resource being referenced
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public RoleRefArgs build() {
if ($.apiGroup == null) {
throw new MissingRequiredPropertyException("RoleRefArgs", "apiGroup");
}
if ($.kind == null) {
throw new MissingRequiredPropertyException("RoleRefArgs", "kind");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("RoleRefArgs", "name");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy