Name | Type | Description | Notes |
---|---|---|---|
Protocol | Protocol | ||
Method | Pointer to HttpMethodOpt | [optional] | |
Uri | string | URI to check in the target instances | |
Host | Pointer to string | Host for the health check if any | [optional] |
Port | int32 | Port number |
func NewHealthCheckOpts(protocol Protocol, uri string, port int32, ) *HealthCheckOpts
NewHealthCheckOpts instantiates a new HealthCheckOpts 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 NewHealthCheckOptsWithDefaults() *HealthCheckOpts
NewHealthCheckOptsWithDefaults instantiates a new HealthCheckOpts 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 *HealthCheckOpts) GetProtocol() Protocol
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
func (o *HealthCheckOpts) GetProtocolOk() (*Protocol, bool)
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *HealthCheckOpts) SetProtocol(v Protocol)
SetProtocol sets Protocol field to given value.
func (o *HealthCheckOpts) GetMethod() HttpMethodOpt
GetMethod returns the Method field if non-nil, zero value otherwise.
func (o *HealthCheckOpts) GetMethodOk() (*HttpMethodOpt, bool)
GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *HealthCheckOpts) SetMethod(v HttpMethodOpt)
SetMethod sets Method field to given value.
func (o *HealthCheckOpts) HasMethod() bool
HasMethod returns a boolean if a field has been set.
func (o *HealthCheckOpts) GetUri() string
GetUri returns the Uri field if non-nil, zero value otherwise.
func (o *HealthCheckOpts) GetUriOk() (*string, bool)
GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *HealthCheckOpts) SetUri(v string)
SetUri sets Uri field to given value.
func (o *HealthCheckOpts) GetHost() string
GetHost returns the Host field if non-nil, zero value otherwise.
func (o *HealthCheckOpts) GetHostOk() (*string, bool)
GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *HealthCheckOpts) SetHost(v string)
SetHost sets Host field to given value.
func (o *HealthCheckOpts) HasHost() bool
HasHost returns a boolean if a field has been set.
func (o *HealthCheckOpts) GetPort() int32
GetPort returns the Port field if non-nil, zero value otherwise.
func (o *HealthCheckOpts) 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.
func (o *HealthCheckOpts) SetPort(v int32)
SetPort sets Port field to given value.