// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package components

type Coap struct {
	Code        *string `json:"code,omitempty"`
	MessageID   *int    `json:"message_id,omitempty"`
	MessageType *string `json:"message_type,omitempty"`
	Payload     *string `json:"payload,omitempty"`
	Token       *string `json:"token,omitempty"`
	Version     *int    `json:"version,omitempty"`
}

func (o *Coap) GetCode() *string {
	if o == nil {
		return nil
	}
	return o.Code
}

func (o *Coap) GetMessageID() *int {
	if o == nil {
		return nil
	}
	return o.MessageID
}

func (o *Coap) GetMessageType() *string {
	if o == nil {
		return nil
	}
	return o.MessageType
}

func (o *Coap) GetPayload() *string {
	if o == nil {
		return nil
	}
	return o.Payload
}

func (o *Coap) GetToken() *string {
	if o == nil {
		return nil
	}
	return o.Token
}

func (o *Coap) GetVersion() *int {
	if o == nil {
		return nil
	}
	return o.Version
}
