GoodMem
ReferenceClient SDKsGo SDKRequests

PingOnceRequest

PingOnceRequest documentation for Go SDK

Properties

NameTypeDescriptionNotes
TargetIdstringTarget resource ID (UUID)
TargetTypeHintPointer to PingTargetType[optional]
PayloadTypePointer to PingPayloadType[optional]
PayloadPointer to NullableStringExplicit UTF-8 payload to send with the probe (mutually exclusive with payloadSizeBytes)[optional]
PayloadSizeBytesPointer to NullableInt32Synthetic payload size in bytes (mutually exclusive with payload)[optional]
TimeoutMsPointer to NullableInt32Per-probe timeout in milliseconds (0 uses server default)[optional]

Methods

NewPingOnceRequest

func NewPingOnceRequest(targetId string, ) *PingOnceRequest

NewPingOnceRequest instantiates a new PingOnceRequest 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

NewPingOnceRequestWithDefaults

func NewPingOnceRequestWithDefaults() *PingOnceRequest

NewPingOnceRequestWithDefaults instantiates a new PingOnceRequest 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

GetTargetId

func (o *PingOnceRequest) GetTargetId() string

GetTargetId returns the TargetId field if non-nil, zero value otherwise.

GetTargetIdOk

func (o *PingOnceRequest) GetTargetIdOk() (*string, bool)

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

SetTargetId

func (o *PingOnceRequest) SetTargetId(v string)

SetTargetId sets TargetId field to given value.

GetTargetTypeHint

func (o *PingOnceRequest) GetTargetTypeHint() PingTargetType

GetTargetTypeHint returns the TargetTypeHint field if non-nil, zero value otherwise.

GetTargetTypeHintOk

func (o *PingOnceRequest) GetTargetTypeHintOk() (*PingTargetType, bool)

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

SetTargetTypeHint

func (o *PingOnceRequest) SetTargetTypeHint(v PingTargetType)

SetTargetTypeHint sets TargetTypeHint field to given value.

HasTargetTypeHint

func (o *PingOnceRequest) HasTargetTypeHint() bool

HasTargetTypeHint returns a boolean if a field has been set.

GetPayloadType

func (o *PingOnceRequest) GetPayloadType() PingPayloadType

GetPayloadType returns the PayloadType field if non-nil, zero value otherwise.

GetPayloadTypeOk

func (o *PingOnceRequest) GetPayloadTypeOk() (*PingPayloadType, bool)

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

SetPayloadType

func (o *PingOnceRequest) SetPayloadType(v PingPayloadType)

SetPayloadType sets PayloadType field to given value.

HasPayloadType

func (o *PingOnceRequest) HasPayloadType() bool

HasPayloadType returns a boolean if a field has been set.

GetPayload

func (o *PingOnceRequest) GetPayload() string

GetPayload returns the Payload field if non-nil, zero value otherwise.

GetPayloadOk

func (o *PingOnceRequest) GetPayloadOk() (*string, bool)

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

SetPayload

func (o *PingOnceRequest) SetPayload(v string)

SetPayload sets Payload field to given value.

HasPayload

func (o *PingOnceRequest) HasPayload() bool

HasPayload returns a boolean if a field has been set.

SetPayloadNil

func (o *PingOnceRequest) SetPayloadNil(b bool)

SetPayloadNil sets the value for Payload to be an explicit nil

UnsetPayload

func (o *PingOnceRequest) UnsetPayload()

UnsetPayload ensures that no value is present for Payload, not even an explicit nil

GetPayloadSizeBytes

func (o *PingOnceRequest) GetPayloadSizeBytes() int32

GetPayloadSizeBytes returns the PayloadSizeBytes field if non-nil, zero value otherwise.

GetPayloadSizeBytesOk

func (o *PingOnceRequest) GetPayloadSizeBytesOk() (*int32, bool)

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

SetPayloadSizeBytes

func (o *PingOnceRequest) SetPayloadSizeBytes(v int32)

SetPayloadSizeBytes sets PayloadSizeBytes field to given value.

HasPayloadSizeBytes

func (o *PingOnceRequest) HasPayloadSizeBytes() bool

HasPayloadSizeBytes returns a boolean if a field has been set.

SetPayloadSizeBytesNil

func (o *PingOnceRequest) SetPayloadSizeBytesNil(b bool)

SetPayloadSizeBytesNil sets the value for PayloadSizeBytes to be an explicit nil

UnsetPayloadSizeBytes

func (o *PingOnceRequest) UnsetPayloadSizeBytes()

UnsetPayloadSizeBytes ensures that no value is present for PayloadSizeBytes, not even an explicit nil

GetTimeoutMs

func (o *PingOnceRequest) GetTimeoutMs() int32

GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise.

GetTimeoutMsOk

func (o *PingOnceRequest) GetTimeoutMsOk() (*int32, bool)

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

SetTimeoutMs

func (o *PingOnceRequest) SetTimeoutMs(v int32)

SetTimeoutMs sets TimeoutMs field to given value.

HasTimeoutMs

func (o *PingOnceRequest) HasTimeoutMs() bool

HasTimeoutMs returns a boolean if a field has been set.

SetTimeoutMsNil

func (o *PingOnceRequest) SetTimeoutMsNil(b bool)

SetTimeoutMsNil sets the value for TimeoutMs to be an explicit nil

UnsetTimeoutMs

func (o *PingOnceRequest) UnsetTimeoutMs()

UnsetTimeoutMs ensures that no value is present for TimeoutMs, not even an explicit nil

↑ Back to Go SDK ↑ Back to Go SDK ↑ Back to Go SDK