com.pulumi.aws.kms.outputs.GetSecretSecret Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) 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.aws.kms.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetSecretSecret {
private @Nullable Map context;
private @Nullable List grantTokens;
private String name;
private String payload;
private GetSecretSecret() {}
public Map context() {
return this.context == null ? Map.of() : this.context;
}
public List grantTokens() {
return this.grantTokens == null ? List.of() : this.grantTokens;
}
public String name() {
return this.name;
}
public String payload() {
return this.payload;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSecretSecret defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map context;
private @Nullable List grantTokens;
private String name;
private String payload;
public Builder() {}
public Builder(GetSecretSecret defaults) {
Objects.requireNonNull(defaults);
this.context = defaults.context;
this.grantTokens = defaults.grantTokens;
this.name = defaults.name;
this.payload = defaults.payload;
}
@CustomType.Setter
public Builder context(@Nullable Map context) {
this.context = context;
return this;
}
@CustomType.Setter
public Builder grantTokens(@Nullable List grantTokens) {
this.grantTokens = grantTokens;
return this;
}
public Builder grantTokens(String... grantTokens) {
return grantTokens(List.of(grantTokens));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetSecretSecret", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder payload(String payload) {
if (payload == null) {
throw new MissingRequiredPropertyException("GetSecretSecret", "payload");
}
this.payload = payload;
return this;
}
public GetSecretSecret build() {
final var _resultValue = new GetSecretSecret();
_resultValue.context = context;
_resultValue.grantTokens = grantTokens;
_resultValue.name = name;
_resultValue.payload = payload;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy