com.pulumi.meraki.networks.outputs.GetSwitchQosRulesOrderItem 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.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetSwitchQosRulesOrderItem {
private Integer dscp;
private Integer dstPort;
private String dstPortRange;
private String id;
private String protocol;
private Integer srcPort;
private String srcPortRange;
private Integer vlan;
private GetSwitchQosRulesOrderItem() {}
public Integer dscp() {
return this.dscp;
}
public Integer dstPort() {
return this.dstPort;
}
public String dstPortRange() {
return this.dstPortRange;
}
public String id() {
return this.id;
}
public String protocol() {
return this.protocol;
}
public Integer srcPort() {
return this.srcPort;
}
public String srcPortRange() {
return this.srcPortRange;
}
public Integer vlan() {
return this.vlan;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSwitchQosRulesOrderItem defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer dscp;
private Integer dstPort;
private String dstPortRange;
private String id;
private String protocol;
private Integer srcPort;
private String srcPortRange;
private Integer vlan;
public Builder() {}
public Builder(GetSwitchQosRulesOrderItem defaults) {
Objects.requireNonNull(defaults);
this.dscp = defaults.dscp;
this.dstPort = defaults.dstPort;
this.dstPortRange = defaults.dstPortRange;
this.id = defaults.id;
this.protocol = defaults.protocol;
this.srcPort = defaults.srcPort;
this.srcPortRange = defaults.srcPortRange;
this.vlan = defaults.vlan;
}
@CustomType.Setter
public Builder dscp(Integer dscp) {
if (dscp == null) {
throw new MissingRequiredPropertyException("GetSwitchQosRulesOrderItem", "dscp");
}
this.dscp = dscp;
return this;
}
@CustomType.Setter
public Builder dstPort(Integer dstPort) {
if (dstPort == null) {
throw new MissingRequiredPropertyException("GetSwitchQosRulesOrderItem", "dstPort");
}
this.dstPort = dstPort;
return this;
}
@CustomType.Setter
public Builder dstPortRange(String dstPortRange) {
if (dstPortRange == null) {
throw new MissingRequiredPropertyException("GetSwitchQosRulesOrderItem", "dstPortRange");
}
this.dstPortRange = dstPortRange;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSwitchQosRulesOrderItem", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("GetSwitchQosRulesOrderItem", "protocol");
}
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder srcPort(Integer srcPort) {
if (srcPort == null) {
throw new MissingRequiredPropertyException("GetSwitchQosRulesOrderItem", "srcPort");
}
this.srcPort = srcPort;
return this;
}
@CustomType.Setter
public Builder srcPortRange(String srcPortRange) {
if (srcPortRange == null) {
throw new MissingRequiredPropertyException("GetSwitchQosRulesOrderItem", "srcPortRange");
}
this.srcPortRange = srcPortRange;
return this;
}
@CustomType.Setter
public Builder vlan(Integer vlan) {
if (vlan == null) {
throw new MissingRequiredPropertyException("GetSwitchQosRulesOrderItem", "vlan");
}
this.vlan = vlan;
return this;
}
public GetSwitchQosRulesOrderItem build() {
final var _resultValue = new GetSwitchQosRulesOrderItem();
_resultValue.dscp = dscp;
_resultValue.dstPort = dstPort;
_resultValue.dstPortRange = dstPortRange;
_resultValue.id = id;
_resultValue.protocol = protocol;
_resultValue.srcPort = srcPort;
_resultValue.srcPortRange = srcPortRange;
_resultValue.vlan = vlan;
return _resultValue;
}
}
}