com.pulumi.aws.shield.outputs.GetProtectionResult 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.shield.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetProtectionResult {
private String id;
/**
* @return Name of the protection.
*
*/
private String name;
/**
* @return ARN of the protection.
*
*/
private String protectionArn;
private String protectionId;
private String resourceArn;
private GetProtectionResult() {}
public String id() {
return this.id;
}
/**
* @return Name of the protection.
*
*/
public String name() {
return this.name;
}
/**
* @return ARN of the protection.
*
*/
public String protectionArn() {
return this.protectionArn;
}
public String protectionId() {
return this.protectionId;
}
public String resourceArn() {
return this.resourceArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetProtectionResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String name;
private String protectionArn;
private String protectionId;
private String resourceArn;
public Builder() {}
public Builder(GetProtectionResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.name = defaults.name;
this.protectionArn = defaults.protectionArn;
this.protectionId = defaults.protectionId;
this.resourceArn = defaults.resourceArn;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetProtectionResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetProtectionResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder protectionArn(String protectionArn) {
if (protectionArn == null) {
throw new MissingRequiredPropertyException("GetProtectionResult", "protectionArn");
}
this.protectionArn = protectionArn;
return this;
}
@CustomType.Setter
public Builder protectionId(String protectionId) {
if (protectionId == null) {
throw new MissingRequiredPropertyException("GetProtectionResult", "protectionId");
}
this.protectionId = protectionId;
return this;
}
@CustomType.Setter
public Builder resourceArn(String resourceArn) {
if (resourceArn == null) {
throw new MissingRequiredPropertyException("GetProtectionResult", "resourceArn");
}
this.resourceArn = resourceArn;
return this;
}
public GetProtectionResult build() {
final var _resultValue = new GetProtectionResult();
_resultValue.id = id;
_resultValue.name = name;
_resultValue.protectionArn = protectionArn;
_resultValue.protectionId = protectionId;
_resultValue.resourceArn = resourceArn;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy