@Generated(value="OracleSDKGenerator", comments="API Version: 20220615") public final class VirtualDeploymentTrafficRuleTargetDetails extends TrafficRuleTargetDetails
Traffic router target for a virtual service version.
Note: Objects should always be created or deserialized using the VirtualDeploymentTrafficRuleTargetDetails.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 VirtualDeploymentTrafficRuleTargetDetails.Builder
, which maintain a
set of all explicitly set fields called VirtualDeploymentTrafficRuleTargetDetails.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
VirtualDeploymentTrafficRuleTargetDetails.Builder |
TrafficRuleTargetDetails.Type
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
VirtualDeploymentTrafficRuleTargetDetails(String virtualDeploymentId,
Integer port,
Integer weight)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static VirtualDeploymentTrafficRuleTargetDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getPort()
Port on virtual deployment to target.
|
String |
getVirtualDeploymentId()
The OCID of the virtual deployment where the request will be routed.
|
Integer |
getWeight()
Weight of traffic target.
|
int |
hashCode() |
VirtualDeploymentTrafficRuleTargetDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public VirtualDeploymentTrafficRuleTargetDetails(String virtualDeploymentId, Integer port, Integer weight)
public static VirtualDeploymentTrafficRuleTargetDetails.Builder builder()
Create a new builder.
public VirtualDeploymentTrafficRuleTargetDetails.Builder toBuilder()
public String getVirtualDeploymentId()
The OCID of the virtual deployment where the request will be routed.
public Integer getPort()
Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment.
public Integer getWeight()
Weight of traffic target.
public String toString()
toString
in class TrafficRuleTargetDetails
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class TrafficRuleTargetDetails
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class TrafficRuleTargetDetails
public int hashCode()
hashCode
in class TrafficRuleTargetDetails
Copyright © 2016–2024. All rights reserved.