Name | Type | Description | Notes |
---|---|---|---|
Kind | string | The kind of target that the route is referring to. Currently, only 'Service' is allowed | |
Name | string | name of the service/target that is being referred to. e.g. name of the service | |
Weight | int32 | weight as an integer between 0 and 256, default 1, that specifies the target's relative weight against other target reference objects. 0 suppresses requests to this backend. |
func NewV1RouteTargetReference(kind string, name string, weight int32, ) *V1RouteTargetReference
NewV1RouteTargetReference instantiates a new V1RouteTargetReference 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
func NewV1RouteTargetReferenceWithDefaults() *V1RouteTargetReference
NewV1RouteTargetReferenceWithDefaults instantiates a new V1RouteTargetReference 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
func (o *V1RouteTargetReference) GetKind() string
GetKind returns the Kind field if non-nil, zero value otherwise.
func (o *V1RouteTargetReference) GetKindOk() (*string, bool)
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1RouteTargetReference) SetKind(v string)
SetKind sets Kind field to given value.
func (o *V1RouteTargetReference) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *V1RouteTargetReference) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1RouteTargetReference) SetName(v string)
SetName sets Name field to given value.
func (o *V1RouteTargetReference) GetWeight() int32
GetWeight returns the Weight field if non-nil, zero value otherwise.
func (o *V1RouteTargetReference) 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.
func (o *V1RouteTargetReference) SetWeight(v int32)
SetWeight sets Weight field to given value.