Name | Type | Description | Notes |
---|---|---|---|
Preference | V1NodeSelectorTerm | ||
Weight | int32 | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. |
func NewV1PreferredSchedulingTerm(preference V1NodeSelectorTerm, weight int32, ) *V1PreferredSchedulingTerm
NewV1PreferredSchedulingTerm instantiates a new V1PreferredSchedulingTerm 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 NewV1PreferredSchedulingTermWithDefaults() *V1PreferredSchedulingTerm
NewV1PreferredSchedulingTermWithDefaults instantiates a new V1PreferredSchedulingTerm 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 *V1PreferredSchedulingTerm) GetPreference() V1NodeSelectorTerm
GetPreference returns the Preference field if non-nil, zero value otherwise.
func (o *V1PreferredSchedulingTerm) GetPreferenceOk() (*V1NodeSelectorTerm, bool)
GetPreferenceOk returns a tuple with the Preference field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1PreferredSchedulingTerm) SetPreference(v V1NodeSelectorTerm)
SetPreference sets Preference field to given value.
func (o *V1PreferredSchedulingTerm) GetWeight() int32
GetWeight returns the Weight field if non-nil, zero value otherwise.
func (o *V1PreferredSchedulingTerm) 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 *V1PreferredSchedulingTerm) SetWeight(v int32)
SetWeight sets Weight field to given value.