
com.pulumi.aws.ebs.outputs.GetDefaultKmsKeyResult Maven / Gradle / Ivy
// *** 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.ebs.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetDefaultKmsKeyResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return ARN of the default KMS key uses to encrypt an EBS volume in this region when no key is specified in an API call that creates the volume and encryption by default is enabled.
*
*/
private String keyArn;
private GetDefaultKmsKeyResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return ARN of the default KMS key uses to encrypt an EBS volume in this region when no key is specified in an API call that creates the volume and encryption by default is enabled.
*
*/
public String keyArn() {
return this.keyArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDefaultKmsKeyResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String keyArn;
public Builder() {}
public Builder(GetDefaultKmsKeyResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.keyArn = defaults.keyArn;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDefaultKmsKeyResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder keyArn(String keyArn) {
if (keyArn == null) {
throw new MissingRequiredPropertyException("GetDefaultKmsKeyResult", "keyArn");
}
this.keyArn = keyArn;
return this;
}
public GetDefaultKmsKeyResult build() {
final var _resultValue = new GetDefaultKmsKeyResult();
_resultValue.id = id;
_resultValue.keyArn = keyArn;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy