public static class VirtualServiceTrafficRuleTarget.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VirtualServiceTrafficRuleTarget |
build() |
VirtualServiceTrafficRuleTarget.Builder |
copy(VirtualServiceTrafficRuleTarget model) |
VirtualServiceTrafficRuleTarget.Builder |
port(Integer port)
The port on the virtual service to target.
|
VirtualServiceTrafficRuleTarget.Builder |
virtualServiceId(String virtualServiceId)
The OCID of the virtual service where the request will be routed.
|
VirtualServiceTrafficRuleTarget.Builder |
weight(Integer weight)
Weight of traffic target.
|
public VirtualServiceTrafficRuleTarget.Builder virtualServiceId(String virtualServiceId)
The OCID of the virtual service where the request will be routed.
virtualServiceId
- the value to setpublic VirtualServiceTrafficRuleTarget.Builder port(Integer port)
The port on the virtual service to target. Mandatory if the virtual deployments are listening on multiple ports.
port
- the value to setpublic VirtualServiceTrafficRuleTarget.Builder weight(Integer weight)
Weight of traffic target.
weight
- the value to setpublic VirtualServiceTrafficRuleTarget build()
public VirtualServiceTrafficRuleTarget.Builder copy(VirtualServiceTrafficRuleTarget model)
Copyright © 2016–2024. All rights reserved.