
com.pulumi.azurenative.network.outputs.QosDefinitionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.network.outputs;
import com.pulumi.azurenative.network.outputs.QosIpRangeResponse;
import com.pulumi.azurenative.network.outputs.QosPortRangeResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class QosDefinitionResponse {
/**
* @return Destination IP ranges.
*
*/
private @Nullable List destinationIpRanges;
/**
* @return Destination port ranges.
*
*/
private @Nullable List destinationPortRanges;
/**
* @return List of markings to be used in the configuration.
*
*/
private @Nullable List markings;
/**
* @return RNM supported protocol types.
*
*/
private @Nullable String protocol;
/**
* @return Source IP ranges.
*
*/
private @Nullable List sourceIpRanges;
/**
* @return Sources port ranges.
*
*/
private @Nullable List sourcePortRanges;
private QosDefinitionResponse() {}
/**
* @return Destination IP ranges.
*
*/
public List destinationIpRanges() {
return this.destinationIpRanges == null ? List.of() : this.destinationIpRanges;
}
/**
* @return Destination port ranges.
*
*/
public List destinationPortRanges() {
return this.destinationPortRanges == null ? List.of() : this.destinationPortRanges;
}
/**
* @return List of markings to be used in the configuration.
*
*/
public List markings() {
return this.markings == null ? List.of() : this.markings;
}
/**
* @return RNM supported protocol types.
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
/**
* @return Source IP ranges.
*
*/
public List sourceIpRanges() {
return this.sourceIpRanges == null ? List.of() : this.sourceIpRanges;
}
/**
* @return Sources port ranges.
*
*/
public List sourcePortRanges() {
return this.sourcePortRanges == null ? List.of() : this.sourcePortRanges;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(QosDefinitionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List destinationIpRanges;
private @Nullable List destinationPortRanges;
private @Nullable List markings;
private @Nullable String protocol;
private @Nullable List sourceIpRanges;
private @Nullable List sourcePortRanges;
public Builder() {}
public Builder(QosDefinitionResponse defaults) {
Objects.requireNonNull(defaults);
this.destinationIpRanges = defaults.destinationIpRanges;
this.destinationPortRanges = defaults.destinationPortRanges;
this.markings = defaults.markings;
this.protocol = defaults.protocol;
this.sourceIpRanges = defaults.sourceIpRanges;
this.sourcePortRanges = defaults.sourcePortRanges;
}
@CustomType.Setter
public Builder destinationIpRanges(@Nullable List destinationIpRanges) {
this.destinationIpRanges = destinationIpRanges;
return this;
}
public Builder destinationIpRanges(QosIpRangeResponse... destinationIpRanges) {
return destinationIpRanges(List.of(destinationIpRanges));
}
@CustomType.Setter
public Builder destinationPortRanges(@Nullable List destinationPortRanges) {
this.destinationPortRanges = destinationPortRanges;
return this;
}
public Builder destinationPortRanges(QosPortRangeResponse... destinationPortRanges) {
return destinationPortRanges(List.of(destinationPortRanges));
}
@CustomType.Setter
public Builder markings(@Nullable List markings) {
this.markings = markings;
return this;
}
public Builder markings(Integer... markings) {
return markings(List.of(markings));
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder sourceIpRanges(@Nullable List sourceIpRanges) {
this.sourceIpRanges = sourceIpRanges;
return this;
}
public Builder sourceIpRanges(QosIpRangeResponse... sourceIpRanges) {
return sourceIpRanges(List.of(sourceIpRanges));
}
@CustomType.Setter
public Builder sourcePortRanges(@Nullable List sourcePortRanges) {
this.sourcePortRanges = sourcePortRanges;
return this;
}
public Builder sourcePortRanges(QosPortRangeResponse... sourcePortRanges) {
return sourcePortRanges(List.of(sourcePortRanges));
}
public QosDefinitionResponse build() {
final var _resultValue = new QosDefinitionResponse();
_resultValue.destinationIpRanges = destinationIpRanges;
_resultValue.destinationPortRanges = destinationPortRanges;
_resultValue.markings = markings;
_resultValue.protocol = protocol;
_resultValue.sourceIpRanges = sourceIpRanges;
_resultValue.sourcePortRanges = sourcePortRanges;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy