/*
Merlin

API Guide for accessing Merlin's model management, deployment, and serving functionalities

API version: 0.14.0
*/

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package client

import (
	"encoding/json"
	"time"
)

// checks if the VersionEndpoint type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &VersionEndpoint{}

// VersionEndpoint struct for VersionEndpoint
type VersionEndpoint struct {
	Id                          *string             `json:"id,omitempty"`
	VersionId                   *int32              `json:"version_id,omitempty"`
	Status                      *EndpointStatus     `json:"status,omitempty"`
	Url                         *string             `json:"url,omitempty"`
	ServiceName                 *string             `json:"service_name,omitempty"`
	EnvironmentName             *string             `json:"environment_name,omitempty"`
	Environment                 *Environment        `json:"environment,omitempty"`
	MonitoringUrl               *string             `json:"monitoring_url,omitempty"`
	Message                     *string             `json:"message,omitempty"`
	ResourceRequest             *ResourceRequest    `json:"resource_request,omitempty"`
	ImageBuilderResourceRequest *ResourceRequest    `json:"image_builder_resource_request,omitempty"`
	EnvVars                     []EnvVar            `json:"env_vars,omitempty"`
	Secrets                     []MountedMLPSecret  `json:"secrets,omitempty"`
	Transformer                 *Transformer        `json:"transformer,omitempty"`
	Logger                      *Logger             `json:"logger,omitempty"`
	DeploymentMode              *DeploymentMode     `json:"deployment_mode,omitempty"`
	AutoscalingPolicy           *AutoscalingPolicy  `json:"autoscaling_policy,omitempty"`
	Protocol                    *Protocol           `json:"protocol,omitempty"`
	EnableModelObservability    *bool               `json:"enable_model_observability,omitempty"`
	ModelObservability          *ModelObservability `json:"model_observability,omitempty"`
	CreatedAt                   *time.Time          `json:"created_at,omitempty"`
	UpdatedAt                   *time.Time          `json:"updated_at,omitempty"`
}

// NewVersionEndpoint instantiates a new VersionEndpoint 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 NewVersionEndpoint() *VersionEndpoint {
	this := VersionEndpoint{}
	var deploymentMode DeploymentMode = DEPLOYMENTMODE_SERVERLESS
	this.DeploymentMode = &deploymentMode
	return &this
}

// NewVersionEndpointWithDefaults instantiates a new VersionEndpoint 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 NewVersionEndpointWithDefaults() *VersionEndpoint {
	this := VersionEndpoint{}
	var deploymentMode DeploymentMode = DEPLOYMENTMODE_SERVERLESS
	this.DeploymentMode = &deploymentMode
	return &this
}

// GetId returns the Id field value if set, zero value otherwise.
func (o *VersionEndpoint) GetId() string {
	if o == nil || IsNil(o.Id) {
		var ret string
		return ret
	}
	return *o.Id
}

// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetIdOk() (*string, bool) {
	if o == nil || IsNil(o.Id) {
		return nil, false
	}
	return o.Id, true
}

// HasId returns a boolean if a field has been set.
func (o *VersionEndpoint) HasId() bool {
	if o != nil && !IsNil(o.Id) {
		return true
	}

	return false
}

// SetId gets a reference to the given string and assigns it to the Id field.
func (o *VersionEndpoint) SetId(v string) {
	o.Id = &v
}

// GetVersionId returns the VersionId field value if set, zero value otherwise.
func (o *VersionEndpoint) GetVersionId() int32 {
	if o == nil || IsNil(o.VersionId) {
		var ret int32
		return ret
	}
	return *o.VersionId
}

// GetVersionIdOk returns a tuple with the VersionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetVersionIdOk() (*int32, bool) {
	if o == nil || IsNil(o.VersionId) {
		return nil, false
	}
	return o.VersionId, true
}

// HasVersionId returns a boolean if a field has been set.
func (o *VersionEndpoint) HasVersionId() bool {
	if o != nil && !IsNil(o.VersionId) {
		return true
	}

	return false
}

// SetVersionId gets a reference to the given int32 and assigns it to the VersionId field.
func (o *VersionEndpoint) SetVersionId(v int32) {
	o.VersionId = &v
}

// GetStatus returns the Status field value if set, zero value otherwise.
func (o *VersionEndpoint) GetStatus() EndpointStatus {
	if o == nil || IsNil(o.Status) {
		var ret EndpointStatus
		return ret
	}
	return *o.Status
}

// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetStatusOk() (*EndpointStatus, bool) {
	if o == nil || IsNil(o.Status) {
		return nil, false
	}
	return o.Status, true
}

// HasStatus returns a boolean if a field has been set.
func (o *VersionEndpoint) HasStatus() bool {
	if o != nil && !IsNil(o.Status) {
		return true
	}

	return false
}

// SetStatus gets a reference to the given EndpointStatus and assigns it to the Status field.
func (o *VersionEndpoint) SetStatus(v EndpointStatus) {
	o.Status = &v
}

// GetUrl returns the Url field value if set, zero value otherwise.
func (o *VersionEndpoint) GetUrl() string {
	if o == nil || IsNil(o.Url) {
		var ret string
		return ret
	}
	return *o.Url
}

// GetUrlOk returns a tuple with the Url field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetUrlOk() (*string, bool) {
	if o == nil || IsNil(o.Url) {
		return nil, false
	}
	return o.Url, true
}

// HasUrl returns a boolean if a field has been set.
func (o *VersionEndpoint) HasUrl() bool {
	if o != nil && !IsNil(o.Url) {
		return true
	}

	return false
}

// SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *VersionEndpoint) SetUrl(v string) {
	o.Url = &v
}

// GetServiceName returns the ServiceName field value if set, zero value otherwise.
func (o *VersionEndpoint) GetServiceName() string {
	if o == nil || IsNil(o.ServiceName) {
		var ret string
		return ret
	}
	return *o.ServiceName
}

// GetServiceNameOk returns a tuple with the ServiceName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetServiceNameOk() (*string, bool) {
	if o == nil || IsNil(o.ServiceName) {
		return nil, false
	}
	return o.ServiceName, true
}

// HasServiceName returns a boolean if a field has been set.
func (o *VersionEndpoint) HasServiceName() bool {
	if o != nil && !IsNil(o.ServiceName) {
		return true
	}

	return false
}

// SetServiceName gets a reference to the given string and assigns it to the ServiceName field.
func (o *VersionEndpoint) SetServiceName(v string) {
	o.ServiceName = &v
}

// GetEnvironmentName returns the EnvironmentName field value if set, zero value otherwise.
func (o *VersionEndpoint) GetEnvironmentName() string {
	if o == nil || IsNil(o.EnvironmentName) {
		var ret string
		return ret
	}
	return *o.EnvironmentName
}

// GetEnvironmentNameOk returns a tuple with the EnvironmentName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetEnvironmentNameOk() (*string, bool) {
	if o == nil || IsNil(o.EnvironmentName) {
		return nil, false
	}
	return o.EnvironmentName, true
}

// HasEnvironmentName returns a boolean if a field has been set.
func (o *VersionEndpoint) HasEnvironmentName() bool {
	if o != nil && !IsNil(o.EnvironmentName) {
		return true
	}

	return false
}

// SetEnvironmentName gets a reference to the given string and assigns it to the EnvironmentName field.
func (o *VersionEndpoint) SetEnvironmentName(v string) {
	o.EnvironmentName = &v
}

// GetEnvironment returns the Environment field value if set, zero value otherwise.
func (o *VersionEndpoint) GetEnvironment() Environment {
	if o == nil || IsNil(o.Environment) {
		var ret Environment
		return ret
	}
	return *o.Environment
}

// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetEnvironmentOk() (*Environment, bool) {
	if o == nil || IsNil(o.Environment) {
		return nil, false
	}
	return o.Environment, true
}

// HasEnvironment returns a boolean if a field has been set.
func (o *VersionEndpoint) HasEnvironment() bool {
	if o != nil && !IsNil(o.Environment) {
		return true
	}

	return false
}

// SetEnvironment gets a reference to the given Environment and assigns it to the Environment field.
func (o *VersionEndpoint) SetEnvironment(v Environment) {
	o.Environment = &v
}

// GetMonitoringUrl returns the MonitoringUrl field value if set, zero value otherwise.
func (o *VersionEndpoint) GetMonitoringUrl() string {
	if o == nil || IsNil(o.MonitoringUrl) {
		var ret string
		return ret
	}
	return *o.MonitoringUrl
}

// GetMonitoringUrlOk returns a tuple with the MonitoringUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetMonitoringUrlOk() (*string, bool) {
	if o == nil || IsNil(o.MonitoringUrl) {
		return nil, false
	}
	return o.MonitoringUrl, true
}

// HasMonitoringUrl returns a boolean if a field has been set.
func (o *VersionEndpoint) HasMonitoringUrl() bool {
	if o != nil && !IsNil(o.MonitoringUrl) {
		return true
	}

	return false
}

// SetMonitoringUrl gets a reference to the given string and assigns it to the MonitoringUrl field.
func (o *VersionEndpoint) SetMonitoringUrl(v string) {
	o.MonitoringUrl = &v
}

// GetMessage returns the Message field value if set, zero value otherwise.
func (o *VersionEndpoint) GetMessage() string {
	if o == nil || IsNil(o.Message) {
		var ret string
		return ret
	}
	return *o.Message
}

// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetMessageOk() (*string, bool) {
	if o == nil || IsNil(o.Message) {
		return nil, false
	}
	return o.Message, true
}

// HasMessage returns a boolean if a field has been set.
func (o *VersionEndpoint) HasMessage() bool {
	if o != nil && !IsNil(o.Message) {
		return true
	}

	return false
}

// SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *VersionEndpoint) SetMessage(v string) {
	o.Message = &v
}

// GetResourceRequest returns the ResourceRequest field value if set, zero value otherwise.
func (o *VersionEndpoint) GetResourceRequest() ResourceRequest {
	if o == nil || IsNil(o.ResourceRequest) {
		var ret ResourceRequest
		return ret
	}
	return *o.ResourceRequest
}

// GetResourceRequestOk returns a tuple with the ResourceRequest field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetResourceRequestOk() (*ResourceRequest, bool) {
	if o == nil || IsNil(o.ResourceRequest) {
		return nil, false
	}
	return o.ResourceRequest, true
}

// HasResourceRequest returns a boolean if a field has been set.
func (o *VersionEndpoint) HasResourceRequest() bool {
	if o != nil && !IsNil(o.ResourceRequest) {
		return true
	}

	return false
}

// SetResourceRequest gets a reference to the given ResourceRequest and assigns it to the ResourceRequest field.
func (o *VersionEndpoint) SetResourceRequest(v ResourceRequest) {
	o.ResourceRequest = &v
}

// GetImageBuilderResourceRequest returns the ImageBuilderResourceRequest field value if set, zero value otherwise.
func (o *VersionEndpoint) GetImageBuilderResourceRequest() ResourceRequest {
	if o == nil || IsNil(o.ImageBuilderResourceRequest) {
		var ret ResourceRequest
		return ret
	}
	return *o.ImageBuilderResourceRequest
}

// GetImageBuilderResourceRequestOk returns a tuple with the ImageBuilderResourceRequest field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetImageBuilderResourceRequestOk() (*ResourceRequest, bool) {
	if o == nil || IsNil(o.ImageBuilderResourceRequest) {
		return nil, false
	}
	return o.ImageBuilderResourceRequest, true
}

// HasImageBuilderResourceRequest returns a boolean if a field has been set.
func (o *VersionEndpoint) HasImageBuilderResourceRequest() bool {
	if o != nil && !IsNil(o.ImageBuilderResourceRequest) {
		return true
	}

	return false
}

// SetImageBuilderResourceRequest gets a reference to the given ResourceRequest and assigns it to the ImageBuilderResourceRequest field.
func (o *VersionEndpoint) SetImageBuilderResourceRequest(v ResourceRequest) {
	o.ImageBuilderResourceRequest = &v
}

// GetEnvVars returns the EnvVars field value if set, zero value otherwise.
func (o *VersionEndpoint) GetEnvVars() []EnvVar {
	if o == nil || IsNil(o.EnvVars) {
		var ret []EnvVar
		return ret
	}
	return o.EnvVars
}

// GetEnvVarsOk returns a tuple with the EnvVars field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetEnvVarsOk() ([]EnvVar, bool) {
	if o == nil || IsNil(o.EnvVars) {
		return nil, false
	}
	return o.EnvVars, true
}

// HasEnvVars returns a boolean if a field has been set.
func (o *VersionEndpoint) HasEnvVars() bool {
	if o != nil && !IsNil(o.EnvVars) {
		return true
	}

	return false
}

// SetEnvVars gets a reference to the given []EnvVar and assigns it to the EnvVars field.
func (o *VersionEndpoint) SetEnvVars(v []EnvVar) {
	o.EnvVars = v
}

// GetSecrets returns the Secrets field value if set, zero value otherwise.
func (o *VersionEndpoint) GetSecrets() []MountedMLPSecret {
	if o == nil || IsNil(o.Secrets) {
		var ret []MountedMLPSecret
		return ret
	}
	return o.Secrets
}

// GetSecretsOk returns a tuple with the Secrets field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetSecretsOk() ([]MountedMLPSecret, bool) {
	if o == nil || IsNil(o.Secrets) {
		return nil, false
	}
	return o.Secrets, true
}

// HasSecrets returns a boolean if a field has been set.
func (o *VersionEndpoint) HasSecrets() bool {
	if o != nil && !IsNil(o.Secrets) {
		return true
	}

	return false
}

// SetSecrets gets a reference to the given []MountedMLPSecret and assigns it to the Secrets field.
func (o *VersionEndpoint) SetSecrets(v []MountedMLPSecret) {
	o.Secrets = v
}

// GetTransformer returns the Transformer field value if set, zero value otherwise.
func (o *VersionEndpoint) GetTransformer() Transformer {
	if o == nil || IsNil(o.Transformer) {
		var ret Transformer
		return ret
	}
	return *o.Transformer
}

// GetTransformerOk returns a tuple with the Transformer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetTransformerOk() (*Transformer, bool) {
	if o == nil || IsNil(o.Transformer) {
		return nil, false
	}
	return o.Transformer, true
}

// HasTransformer returns a boolean if a field has been set.
func (o *VersionEndpoint) HasTransformer() bool {
	if o != nil && !IsNil(o.Transformer) {
		return true
	}

	return false
}

// SetTransformer gets a reference to the given Transformer and assigns it to the Transformer field.
func (o *VersionEndpoint) SetTransformer(v Transformer) {
	o.Transformer = &v
}

// GetLogger returns the Logger field value if set, zero value otherwise.
func (o *VersionEndpoint) GetLogger() Logger {
	if o == nil || IsNil(o.Logger) {
		var ret Logger
		return ret
	}
	return *o.Logger
}

// GetLoggerOk returns a tuple with the Logger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetLoggerOk() (*Logger, bool) {
	if o == nil || IsNil(o.Logger) {
		return nil, false
	}
	return o.Logger, true
}

// HasLogger returns a boolean if a field has been set.
func (o *VersionEndpoint) HasLogger() bool {
	if o != nil && !IsNil(o.Logger) {
		return true
	}

	return false
}

// SetLogger gets a reference to the given Logger and assigns it to the Logger field.
func (o *VersionEndpoint) SetLogger(v Logger) {
	o.Logger = &v
}

// GetDeploymentMode returns the DeploymentMode field value if set, zero value otherwise.
func (o *VersionEndpoint) GetDeploymentMode() DeploymentMode {
	if o == nil || IsNil(o.DeploymentMode) {
		var ret DeploymentMode
		return ret
	}
	return *o.DeploymentMode
}

// GetDeploymentModeOk returns a tuple with the DeploymentMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetDeploymentModeOk() (*DeploymentMode, bool) {
	if o == nil || IsNil(o.DeploymentMode) {
		return nil, false
	}
	return o.DeploymentMode, true
}

// HasDeploymentMode returns a boolean if a field has been set.
func (o *VersionEndpoint) HasDeploymentMode() bool {
	if o != nil && !IsNil(o.DeploymentMode) {
		return true
	}

	return false
}

// SetDeploymentMode gets a reference to the given DeploymentMode and assigns it to the DeploymentMode field.
func (o *VersionEndpoint) SetDeploymentMode(v DeploymentMode) {
	o.DeploymentMode = &v
}

// GetAutoscalingPolicy returns the AutoscalingPolicy field value if set, zero value otherwise.
func (o *VersionEndpoint) GetAutoscalingPolicy() AutoscalingPolicy {
	if o == nil || IsNil(o.AutoscalingPolicy) {
		var ret AutoscalingPolicy
		return ret
	}
	return *o.AutoscalingPolicy
}

// GetAutoscalingPolicyOk returns a tuple with the AutoscalingPolicy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetAutoscalingPolicyOk() (*AutoscalingPolicy, bool) {
	if o == nil || IsNil(o.AutoscalingPolicy) {
		return nil, false
	}
	return o.AutoscalingPolicy, true
}

// HasAutoscalingPolicy returns a boolean if a field has been set.
func (o *VersionEndpoint) HasAutoscalingPolicy() bool {
	if o != nil && !IsNil(o.AutoscalingPolicy) {
		return true
	}

	return false
}

// SetAutoscalingPolicy gets a reference to the given AutoscalingPolicy and assigns it to the AutoscalingPolicy field.
func (o *VersionEndpoint) SetAutoscalingPolicy(v AutoscalingPolicy) {
	o.AutoscalingPolicy = &v
}

// GetProtocol returns the Protocol field value if set, zero value otherwise.
func (o *VersionEndpoint) GetProtocol() Protocol {
	if o == nil || IsNil(o.Protocol) {
		var ret Protocol
		return ret
	}
	return *o.Protocol
}

// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetProtocolOk() (*Protocol, bool) {
	if o == nil || IsNil(o.Protocol) {
		return nil, false
	}
	return o.Protocol, true
}

// HasProtocol returns a boolean if a field has been set.
func (o *VersionEndpoint) HasProtocol() bool {
	if o != nil && !IsNil(o.Protocol) {
		return true
	}

	return false
}

// SetProtocol gets a reference to the given Protocol and assigns it to the Protocol field.
func (o *VersionEndpoint) SetProtocol(v Protocol) {
	o.Protocol = &v
}

// GetEnableModelObservability returns the EnableModelObservability field value if set, zero value otherwise.
func (o *VersionEndpoint) GetEnableModelObservability() bool {
	if o == nil || IsNil(o.EnableModelObservability) {
		var ret bool
		return ret
	}
	return *o.EnableModelObservability
}

// GetEnableModelObservabilityOk returns a tuple with the EnableModelObservability field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetEnableModelObservabilityOk() (*bool, bool) {
	if o == nil || IsNil(o.EnableModelObservability) {
		return nil, false
	}
	return o.EnableModelObservability, true
}

// HasEnableModelObservability returns a boolean if a field has been set.
func (o *VersionEndpoint) HasEnableModelObservability() bool {
	if o != nil && !IsNil(o.EnableModelObservability) {
		return true
	}

	return false
}

// SetEnableModelObservability gets a reference to the given bool and assigns it to the EnableModelObservability field.
func (o *VersionEndpoint) SetEnableModelObservability(v bool) {
	o.EnableModelObservability = &v
}

// GetModelObservability returns the ModelObservability field value if set, zero value otherwise.
func (o *VersionEndpoint) GetModelObservability() ModelObservability {
	if o == nil || IsNil(o.ModelObservability) {
		var ret ModelObservability
		return ret
	}
	return *o.ModelObservability
}

// GetModelObservabilityOk returns a tuple with the ModelObservability field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetModelObservabilityOk() (*ModelObservability, bool) {
	if o == nil || IsNil(o.ModelObservability) {
		return nil, false
	}
	return o.ModelObservability, true
}

// HasModelObservability returns a boolean if a field has been set.
func (o *VersionEndpoint) HasModelObservability() bool {
	if o != nil && !IsNil(o.ModelObservability) {
		return true
	}

	return false
}

// SetModelObservability gets a reference to the given ModelObservability and assigns it to the ModelObservability field.
func (o *VersionEndpoint) SetModelObservability(v ModelObservability) {
	o.ModelObservability = &v
}

// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *VersionEndpoint) GetCreatedAt() time.Time {
	if o == nil || IsNil(o.CreatedAt) {
		var ret time.Time
		return ret
	}
	return *o.CreatedAt
}

// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetCreatedAtOk() (*time.Time, bool) {
	if o == nil || IsNil(o.CreatedAt) {
		return nil, false
	}
	return o.CreatedAt, true
}

// HasCreatedAt returns a boolean if a field has been set.
func (o *VersionEndpoint) HasCreatedAt() bool {
	if o != nil && !IsNil(o.CreatedAt) {
		return true
	}

	return false
}

// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *VersionEndpoint) SetCreatedAt(v time.Time) {
	o.CreatedAt = &v
}

// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *VersionEndpoint) GetUpdatedAt() time.Time {
	if o == nil || IsNil(o.UpdatedAt) {
		var ret time.Time
		return ret
	}
	return *o.UpdatedAt
}

// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionEndpoint) GetUpdatedAtOk() (*time.Time, bool) {
	if o == nil || IsNil(o.UpdatedAt) {
		return nil, false
	}
	return o.UpdatedAt, true
}

// HasUpdatedAt returns a boolean if a field has been set.
func (o *VersionEndpoint) HasUpdatedAt() bool {
	if o != nil && !IsNil(o.UpdatedAt) {
		return true
	}

	return false
}

// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
func (o *VersionEndpoint) SetUpdatedAt(v time.Time) {
	o.UpdatedAt = &v
}

func (o VersionEndpoint) MarshalJSON() ([]byte, error) {
	toSerialize, err := o.ToMap()
	if err != nil {
		return []byte{}, err
	}
	return json.Marshal(toSerialize)
}

func (o VersionEndpoint) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Id) {
		toSerialize["id"] = o.Id
	}
	if !IsNil(o.VersionId) {
		toSerialize["version_id"] = o.VersionId
	}
	if !IsNil(o.Status) {
		toSerialize["status"] = o.Status
	}
	if !IsNil(o.Url) {
		toSerialize["url"] = o.Url
	}
	if !IsNil(o.ServiceName) {
		toSerialize["service_name"] = o.ServiceName
	}
	if !IsNil(o.EnvironmentName) {
		toSerialize["environment_name"] = o.EnvironmentName
	}
	if !IsNil(o.Environment) {
		toSerialize["environment"] = o.Environment
	}
	if !IsNil(o.MonitoringUrl) {
		toSerialize["monitoring_url"] = o.MonitoringUrl
	}
	if !IsNil(o.Message) {
		toSerialize["message"] = o.Message
	}
	if !IsNil(o.ResourceRequest) {
		toSerialize["resource_request"] = o.ResourceRequest
	}
	if !IsNil(o.ImageBuilderResourceRequest) {
		toSerialize["image_builder_resource_request"] = o.ImageBuilderResourceRequest
	}
	if !IsNil(o.EnvVars) {
		toSerialize["env_vars"] = o.EnvVars
	}
	if !IsNil(o.Secrets) {
		toSerialize["secrets"] = o.Secrets
	}
	if !IsNil(o.Transformer) {
		toSerialize["transformer"] = o.Transformer
	}
	if !IsNil(o.Logger) {
		toSerialize["logger"] = o.Logger
	}
	if !IsNil(o.DeploymentMode) {
		toSerialize["deployment_mode"] = o.DeploymentMode
	}
	if !IsNil(o.AutoscalingPolicy) {
		toSerialize["autoscaling_policy"] = o.AutoscalingPolicy
	}
	if !IsNil(o.Protocol) {
		toSerialize["protocol"] = o.Protocol
	}
	if !IsNil(o.EnableModelObservability) {
		toSerialize["enable_model_observability"] = o.EnableModelObservability
	}
	if !IsNil(o.ModelObservability) {
		toSerialize["model_observability"] = o.ModelObservability
	}
	if !IsNil(o.CreatedAt) {
		toSerialize["created_at"] = o.CreatedAt
	}
	if !IsNil(o.UpdatedAt) {
		toSerialize["updated_at"] = o.UpdatedAt
	}
	return toSerialize, nil
}

type NullableVersionEndpoint struct {
	value *VersionEndpoint
	isSet bool
}

func (v NullableVersionEndpoint) Get() *VersionEndpoint {
	return v.value
}

func (v *NullableVersionEndpoint) Set(val *VersionEndpoint) {
	v.value = val
	v.isSet = true
}

func (v NullableVersionEndpoint) IsSet() bool {
	return v.isSet
}

func (v *NullableVersionEndpoint) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableVersionEndpoint(val *VersionEndpoint) *NullableVersionEndpoint {
	return &NullableVersionEndpoint{value: val, isSet: true}
}

func (v NullableVersionEndpoint) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableVersionEndpoint) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}
