com.pulumi.meraki.networks.outputs.GroupPoliciesBonjourForwarding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meraki Show documentation
Show all versions of meraki Show documentation
A Pulumi package for creating and managing Cisco Meraki 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.meraki.networks.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.meraki.networks.outputs.GroupPoliciesBonjourForwardingRule;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GroupPoliciesBonjourForwarding {
/**
* @return A list of the Bonjour forwarding rules for your group policy. If 'settings' is set to 'custom', at least one rule must be specified.
*
*/
private @Nullable List rules;
/**
* @return How Bonjour rules are applied. Can be 'network default', 'ignore' or 'custom'.
*
*/
private @Nullable String settings;
private GroupPoliciesBonjourForwarding() {}
/**
* @return A list of the Bonjour forwarding rules for your group policy. If 'settings' is set to 'custom', at least one rule must be specified.
*
*/
public List rules() {
return this.rules == null ? List.of() : this.rules;
}
/**
* @return How Bonjour rules are applied. Can be 'network default', 'ignore' or 'custom'.
*
*/
public Optional settings() {
return Optional.ofNullable(this.settings);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GroupPoliciesBonjourForwarding defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List rules;
private @Nullable String settings;
public Builder() {}
public Builder(GroupPoliciesBonjourForwarding defaults) {
Objects.requireNonNull(defaults);
this.rules = defaults.rules;
this.settings = defaults.settings;
}
@CustomType.Setter
public Builder rules(@Nullable List rules) {
this.rules = rules;
return this;
}
public Builder rules(GroupPoliciesBonjourForwardingRule... rules) {
return rules(List.of(rules));
}
@CustomType.Setter
public Builder settings(@Nullable String settings) {
this.settings = settings;
return this;
}
public GroupPoliciesBonjourForwarding build() {
final var _resultValue = new GroupPoliciesBonjourForwarding();
_resultValue.rules = rules;
_resultValue.settings = settings;
return _resultValue;
}
}
}