com.pulumi.cloudflare.outputs.EmailRoutingRuleMatcher 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.cloudflare.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EmailRoutingRuleMatcher {
/**
* @return Field for type matcher.
*
*/
private @Nullable String field;
/**
* @return Type of matcher.
*
*/
private String type;
/**
* @return Value for matcher.
*
*/
private @Nullable String value;
private EmailRoutingRuleMatcher() {}
/**
* @return Field for type matcher.
*
*/
public Optional field() {
return Optional.ofNullable(this.field);
}
/**
* @return Type of matcher.
*
*/
public String type() {
return this.type;
}
/**
* @return Value for matcher.
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EmailRoutingRuleMatcher defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String field;
private String type;
private @Nullable String value;
public Builder() {}
public Builder(EmailRoutingRuleMatcher defaults) {
Objects.requireNonNull(defaults);
this.field = defaults.field;
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder field(@Nullable String field) {
this.field = field;
return this;
}
@CustomType.Setter
public Builder type(String type) {
this.type = Objects.requireNonNull(type);
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public EmailRoutingRuleMatcher build() {
final var o = new EmailRoutingRuleMatcher();
o.field = field;
o.type = type;
o.value = value;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy