com.pulumi.aws.waf.outputs.GetSubscribedRuleGroupResult 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.waf.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetSubscribedRuleGroupResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable String metricName;
private @Nullable String name;
private GetSubscribedRuleGroupResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional metricName() {
return Optional.ofNullable(this.metricName);
}
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSubscribedRuleGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable String metricName;
private @Nullable String name;
public Builder() {}
public Builder(GetSubscribedRuleGroupResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.metricName = defaults.metricName;
this.name = defaults.name;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSubscribedRuleGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder metricName(@Nullable String metricName) {
this.metricName = metricName;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public GetSubscribedRuleGroupResult build() {
final var _resultValue = new GetSubscribedRuleGroupResult();
_resultValue.id = id;
_resultValue.metricName = metricName;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy