com.pulumi.meraki.networks.outputs.WirelessSsidsTrafficShapingRulesRuleDefinition 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 java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WirelessSsidsTrafficShapingRulesRuleDefinition {
/**
* @return The type of definition. Can be one of 'application', 'applicationCategory', 'host', 'port', 'ipRange' or 'localNet'.
*
*/
private @Nullable String type;
/**
* @return If "type" is 'host', 'port', 'ipRange' or 'localNet', then "value" must be a string, matching either
* a hostname (e.g. "somesite.com"), a port (e.g. 8080), or an IP range ("192.1.0.0",
* "192.1.0.0/16", or "10.1.0.0/16:80"). 'localNet' also supports CIDR notation, excluding
* custom ports.
* If "type" is 'application' or 'applicationCategory', then "value" must be an object
* with the structure { "id": "meraki:layer7/..." }, where "id" is the application category or
* application ID (for a list of IDs for your network, use the trafficShaping/applicationCategories
* endpoint).
*
*/
private @Nullable String value;
private WirelessSsidsTrafficShapingRulesRuleDefinition() {}
/**
* @return The type of definition. Can be one of 'application', 'applicationCategory', 'host', 'port', 'ipRange' or 'localNet'.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
/**
* @return If "type" is 'host', 'port', 'ipRange' or 'localNet', then "value" must be a string, matching either
* a hostname (e.g. "somesite.com"), a port (e.g. 8080), or an IP range ("192.1.0.0",
* "192.1.0.0/16", or "10.1.0.0/16:80"). 'localNet' also supports CIDR notation, excluding
* custom ports.
* If "type" is 'application' or 'applicationCategory', then "value" must be an object
* with the structure { "id": "meraki:layer7/..." }, where "id" is the application category or
* application ID (for a list of IDs for your network, use the trafficShaping/applicationCategories
* endpoint).
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WirelessSsidsTrafficShapingRulesRuleDefinition defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String type;
private @Nullable String value;
public Builder() {}
public Builder(WirelessSsidsTrafficShapingRulesRuleDefinition defaults) {
Objects.requireNonNull(defaults);
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public WirelessSsidsTrafficShapingRulesRuleDefinition build() {
final var _resultValue = new WirelessSsidsTrafficShapingRulesRuleDefinition();
_resultValue.type = type;
_resultValue.value = value;
return _resultValue;
}
}
}