// Code generated by go-swagger; DO NOT EDIT.

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"
	"encoding/json"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/validate"
)

// HashicorpCloudNetwork20200907AzureHopType hashicorp cloud network 20200907 azure hop type
//
// swagger:model hashicorp.cloud.network_20200907.AzureHopType
type HashicorpCloudNetwork20200907AzureHopType string

func NewHashicorpCloudNetwork20200907AzureHopType(value HashicorpCloudNetwork20200907AzureHopType) *HashicorpCloudNetwork20200907AzureHopType {
	return &value
}

// Pointer returns a pointer to a freshly-allocated HashicorpCloudNetwork20200907AzureHopType.
func (m HashicorpCloudNetwork20200907AzureHopType) Pointer() *HashicorpCloudNetwork20200907AzureHopType {
	return &m
}

const (

	// HashicorpCloudNetwork20200907AzureHopTypeVIRTUALAPPLIANCE captures enum value "VIRTUAL_APPLIANCE"
	HashicorpCloudNetwork20200907AzureHopTypeVIRTUALAPPLIANCE HashicorpCloudNetwork20200907AzureHopType = "VIRTUAL_APPLIANCE"

	// HashicorpCloudNetwork20200907AzureHopTypeVIRTUALNETWORKGATEWAY captures enum value "VIRTUAL_NETWORK_GATEWAY"
	HashicorpCloudNetwork20200907AzureHopTypeVIRTUALNETWORKGATEWAY HashicorpCloudNetwork20200907AzureHopType = "VIRTUAL_NETWORK_GATEWAY"
)

// for schema
var hashicorpCloudNetwork20200907AzureHopTypeEnum []interface{}

func init() {
	var res []HashicorpCloudNetwork20200907AzureHopType
	if err := json.Unmarshal([]byte(`["VIRTUAL_APPLIANCE","VIRTUAL_NETWORK_GATEWAY"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudNetwork20200907AzureHopTypeEnum = append(hashicorpCloudNetwork20200907AzureHopTypeEnum, v)
	}
}

func (m HashicorpCloudNetwork20200907AzureHopType) validateHashicorpCloudNetwork20200907AzureHopTypeEnum(path, location string, value HashicorpCloudNetwork20200907AzureHopType) error {
	if err := validate.EnumCase(path, location, value, hashicorpCloudNetwork20200907AzureHopTypeEnum, true); err != nil {
		return err
	}
	return nil
}

// Validate validates this hashicorp cloud network 20200907 azure hop type
func (m HashicorpCloudNetwork20200907AzureHopType) Validate(formats strfmt.Registry) error {
	var res []error

	// value enum
	if err := m.validateHashicorpCloudNetwork20200907AzureHopTypeEnum("", "body", m); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

// ContextValidate validates this hashicorp cloud network 20200907 azure hop type based on context it is used
func (m HashicorpCloudNetwork20200907AzureHopType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
