com.pulumi.aws.acmpca.outputs.GetCertificateResult 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.acmpca.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetCertificateResult {
private String arn;
/**
* @return PEM-encoded certificate value.
*
*/
private String certificate;
private String certificateAuthorityArn;
/**
* @return PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
*
*/
private String certificateChain;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private GetCertificateResult() {}
public String arn() {
return this.arn;
}
/**
* @return PEM-encoded certificate value.
*
*/
public String certificate() {
return this.certificate;
}
public String certificateAuthorityArn() {
return this.certificateAuthorityArn;
}
/**
* @return PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
*
*/
public String certificateChain() {
return this.certificateChain;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCertificateResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String certificate;
private String certificateAuthorityArn;
private String certificateChain;
private String id;
public Builder() {}
public Builder(GetCertificateResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.certificate = defaults.certificate;
this.certificateAuthorityArn = defaults.certificateAuthorityArn;
this.certificateChain = defaults.certificateChain;
this.id = defaults.id;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetCertificateResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder certificate(String certificate) {
if (certificate == null) {
throw new MissingRequiredPropertyException("GetCertificateResult", "certificate");
}
this.certificate = certificate;
return this;
}
@CustomType.Setter
public Builder certificateAuthorityArn(String certificateAuthorityArn) {
if (certificateAuthorityArn == null) {
throw new MissingRequiredPropertyException("GetCertificateResult", "certificateAuthorityArn");
}
this.certificateAuthorityArn = certificateAuthorityArn;
return this;
}
@CustomType.Setter
public Builder certificateChain(String certificateChain) {
if (certificateChain == null) {
throw new MissingRequiredPropertyException("GetCertificateResult", "certificateChain");
}
this.certificateChain = certificateChain;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetCertificateResult", "id");
}
this.id = id;
return this;
}
public GetCertificateResult build() {
final var _resultValue = new GetCertificateResult();
_resultValue.arn = arn;
_resultValue.certificate = certificate;
_resultValue.certificateAuthorityArn = certificateAuthorityArn;
_resultValue.certificateChain = certificateChain;
_resultValue.id = id;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy