NetworkLoadBalancerForwardingRuleTarget

Properties

NameTypeDescriptionNotes

HealthCheck

[optional]

Ip

string

The IP of the balanced target VM.

Port

int32

The port of the balanced target service; valid range is 1 to 65535.

Weight

int32

Traffic is distributed in proportion to target weight, relative to the combined weight of all targets. A target with higher weight receives a greater share of traffic. Valid range is 0 to 256 and default is 1. Targets with weight of 0 do not participate in load balancing but still accept persistent connections. It is best to assign weights in the middle of the range to leave room for later adjustments.

ProxyProtocol

Pointer to string

ProxyProtocol is used to set the proxy protocol version.

[optional] [default to "none"]

Methods

NewNetworkLoadBalancerForwardingRuleTarget

func NewNetworkLoadBalancerForwardingRuleTarget(ip string, port int32, weight int32, ) *NetworkLoadBalancerForwardingRuleTarget

NewNetworkLoadBalancerForwardingRuleTarget instantiates a new NetworkLoadBalancerForwardingRuleTarget object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewNetworkLoadBalancerForwardingRuleTargetWithDefaults

func NewNetworkLoadBalancerForwardingRuleTargetWithDefaults() *NetworkLoadBalancerForwardingRuleTarget

NewNetworkLoadBalancerForwardingRuleTargetWithDefaults instantiates a new NetworkLoadBalancerForwardingRuleTarget object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetHealthCheck

func (o *NetworkLoadBalancerForwardingRuleTarget) GetHealthCheck() NetworkLoadBalancerForwardingRuleTargetHealthCheck

GetHealthCheck returns the HealthCheck field if non-nil, zero value otherwise.

GetHealthCheckOk

func (o *NetworkLoadBalancerForwardingRuleTarget) GetHealthCheckOk() (*NetworkLoadBalancerForwardingRuleTargetHealthCheck, bool)

GetHealthCheckOk returns a tuple with the HealthCheck field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHealthCheck

func (o *NetworkLoadBalancerForwardingRuleTarget) SetHealthCheck(v NetworkLoadBalancerForwardingRuleTargetHealthCheck)

SetHealthCheck sets HealthCheck field to given value.

HasHealthCheck

func (o *NetworkLoadBalancerForwardingRuleTarget) HasHealthCheck() bool

HasHealthCheck returns a boolean if a field has been set.

GetIp

func (o *NetworkLoadBalancerForwardingRuleTarget) GetIp() string

GetIp returns the Ip field if non-nil, zero value otherwise.

GetIpOk

func (o *NetworkLoadBalancerForwardingRuleTarget) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIp

func (o *NetworkLoadBalancerForwardingRuleTarget) SetIp(v string)

SetIp sets Ip field to given value.

GetPort

func (o *NetworkLoadBalancerForwardingRuleTarget) GetPort() int32

GetPort returns the Port field if non-nil, zero value otherwise.

GetPortOk

func (o *NetworkLoadBalancerForwardingRuleTarget) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPort

func (o *NetworkLoadBalancerForwardingRuleTarget) SetPort(v int32)

SetPort sets Port field to given value.

GetWeight

func (o *NetworkLoadBalancerForwardingRuleTarget) GetWeight() int32

GetWeight returns the Weight field if non-nil, zero value otherwise.

GetWeightOk

func (o *NetworkLoadBalancerForwardingRuleTarget) GetWeightOk() (*int32, bool)

GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetWeight

func (o *NetworkLoadBalancerForwardingRuleTarget) SetWeight(v int32)

SetWeight sets Weight field to given value.

GetProxyProtocol

func (o *NetworkLoadBalancerForwardingRuleTarget) GetProxyProtocol() string

GetProxyProtocol returns the ProxyProtocol field if non-nil, zero value otherwise.

GetProxyProtocolOk

func (o *NetworkLoadBalancerForwardingRuleTarget) GetProxyProtocolOk() (*string, bool)

GetProxyProtocolOk returns a tuple with the ProxyProtocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProxyProtocol

func (o *NetworkLoadBalancerForwardingRuleTarget) SetProxyProtocol(v string)

SetProxyProtocol sets ProxyProtocol field to given value.

HasProxyProtocol

func (o *NetworkLoadBalancerForwardingRuleTarget) HasProxyProtocol() bool

HasProxyProtocol returns a boolean if a field has been set.

Last updated