
com.pulumi.vault.gcp.outputs.SecretStaticAccountBinding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vault Show documentation
Show all versions of vault Show documentation
A Pulumi package for creating and managing HashiCorp Vault cloud 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.vault.gcp.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class SecretStaticAccountBinding {
/**
* @return Resource or resource path for which IAM policy information will be bound. The resource path may be specified in a few different [formats](https://www.vaultproject.io/docs/secrets/gcp/index.html#bindings).
*
*/
private String resource;
/**
* @return List of [GCP IAM roles](https://cloud.google.com/iam/docs/understanding-roles) for the resource.
*
*/
private List roles;
private SecretStaticAccountBinding() {}
/**
* @return Resource or resource path for which IAM policy information will be bound. The resource path may be specified in a few different [formats](https://www.vaultproject.io/docs/secrets/gcp/index.html#bindings).
*
*/
public String resource() {
return this.resource;
}
/**
* @return List of [GCP IAM roles](https://cloud.google.com/iam/docs/understanding-roles) for the resource.
*
*/
public List roles() {
return this.roles;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SecretStaticAccountBinding defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String resource;
private List roles;
public Builder() {}
public Builder(SecretStaticAccountBinding defaults) {
Objects.requireNonNull(defaults);
this.resource = defaults.resource;
this.roles = defaults.roles;
}
@CustomType.Setter
public Builder resource(String resource) {
if (resource == null) {
throw new MissingRequiredPropertyException("SecretStaticAccountBinding", "resource");
}
this.resource = resource;
return this;
}
@CustomType.Setter
public Builder roles(List roles) {
if (roles == null) {
throw new MissingRequiredPropertyException("SecretStaticAccountBinding", "roles");
}
this.roles = roles;
return this;
}
public Builder roles(String... roles) {
return roles(List.of(roles));
}
public SecretStaticAccountBinding build() {
final var _resultValue = new SecretStaticAccountBinding();
_resultValue.resource = resource;
_resultValue.roles = roles;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy