@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class UdpOptions extends Object
Optional object to specify ports for a UDP rule. If you specify UDP as the protocol but omit this object, then all ports are allowed.
Note: Objects should always be created or deserialized using the UdpOptions.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the UdpOptions.Builder, which maintain a set of all explicitly set fields called __explicitlySet__. The hashCode() and equals(Object) methods are implemented to take __explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__ (since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
UdpOptions.Builder |
| Constructor and Description |
|---|
UdpOptions(PortRange destinationPortRange,
PortRange sourcePortRange)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static UdpOptions.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
PortRange |
getDestinationPortRange()
An inclusive range of allowed destination ports.
|
PortRange |
getSourcePortRange()
An inclusive range of allowed source ports.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"destinationPortRange","sourcePortRange"}) @Deprecated public UdpOptions(PortRange destinationPortRange, PortRange sourcePortRange)
public static UdpOptions.Builder builder()
Create a new builder.
public PortRange getDestinationPortRange()
An inclusive range of allowed destination ports. Use the same number for the min and max to indicate a single port. Defaults to all ports if not specified.
public PortRange getSourcePortRange()
An inclusive range of allowed source ports. Use the same number for the min and max to indicate a single port. Defaults to all ports if not specified.
Copyright © 2016–2019. All rights reserved.