com.pulumi.aws.secretsmanager.outputs.GetSecretVersionResult 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.secretsmanager.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetSecretVersionResult {
/**
* @return ARN of the secret.
*
*/
private String arn;
/**
* @return Created date of the secret in UTC.
*
*/
private String createdDate;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Decrypted part of the protected secret information that was originally provided as a binary.
*
*/
private String secretBinary;
private String secretId;
/**
* @return Decrypted part of the protected secret information that was originally provided as a string.
*
*/
private String secretString;
/**
* @return Unique identifier of this version of the secret.
*
*/
private String versionId;
private @Nullable String versionStage;
private List versionStages;
private GetSecretVersionResult() {}
/**
* @return ARN of the secret.
*
*/
public String arn() {
return this.arn;
}
/**
* @return Created date of the secret in UTC.
*
*/
public String createdDate() {
return this.createdDate;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Decrypted part of the protected secret information that was originally provided as a binary.
*
*/
public String secretBinary() {
return this.secretBinary;
}
public String secretId() {
return this.secretId;
}
/**
* @return Decrypted part of the protected secret information that was originally provided as a string.
*
*/
public String secretString() {
return this.secretString;
}
/**
* @return Unique identifier of this version of the secret.
*
*/
public String versionId() {
return this.versionId;
}
public Optional versionStage() {
return Optional.ofNullable(this.versionStage);
}
public List versionStages() {
return this.versionStages;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSecretVersionResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String createdDate;
private String id;
private String secretBinary;
private String secretId;
private String secretString;
private String versionId;
private @Nullable String versionStage;
private List versionStages;
public Builder() {}
public Builder(GetSecretVersionResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.createdDate = defaults.createdDate;
this.id = defaults.id;
this.secretBinary = defaults.secretBinary;
this.secretId = defaults.secretId;
this.secretString = defaults.secretString;
this.versionId = defaults.versionId;
this.versionStage = defaults.versionStage;
this.versionStages = defaults.versionStages;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetSecretVersionResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder createdDate(String createdDate) {
if (createdDate == null) {
throw new MissingRequiredPropertyException("GetSecretVersionResult", "createdDate");
}
this.createdDate = createdDate;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSecretVersionResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder secretBinary(String secretBinary) {
if (secretBinary == null) {
throw new MissingRequiredPropertyException("GetSecretVersionResult", "secretBinary");
}
this.secretBinary = secretBinary;
return this;
}
@CustomType.Setter
public Builder secretId(String secretId) {
if (secretId == null) {
throw new MissingRequiredPropertyException("GetSecretVersionResult", "secretId");
}
this.secretId = secretId;
return this;
}
@CustomType.Setter
public Builder secretString(String secretString) {
if (secretString == null) {
throw new MissingRequiredPropertyException("GetSecretVersionResult", "secretString");
}
this.secretString = secretString;
return this;
}
@CustomType.Setter
public Builder versionId(String versionId) {
if (versionId == null) {
throw new MissingRequiredPropertyException("GetSecretVersionResult", "versionId");
}
this.versionId = versionId;
return this;
}
@CustomType.Setter
public Builder versionStage(@Nullable String versionStage) {
this.versionStage = versionStage;
return this;
}
@CustomType.Setter
public Builder versionStages(List versionStages) {
if (versionStages == null) {
throw new MissingRequiredPropertyException("GetSecretVersionResult", "versionStages");
}
this.versionStages = versionStages;
return this;
}
public Builder versionStages(String... versionStages) {
return versionStages(List.of(versionStages));
}
public GetSecretVersionResult build() {
final var _resultValue = new GetSecretVersionResult();
_resultValue.arn = arn;
_resultValue.createdDate = createdDate;
_resultValue.id = id;
_resultValue.secretBinary = secretBinary;
_resultValue.secretId = secretId;
_resultValue.secretString = secretString;
_resultValue.versionId = versionId;
_resultValue.versionStage = versionStage;
_resultValue.versionStages = versionStages;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy