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

package ops

// 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"
)

// JumpJumpPlane jump jump plane
//
// swagger:model jump.JumpPlane
type JumpJumpPlane string

func NewJumpJumpPlane(value JumpJumpPlane) *JumpJumpPlane {
	return &value
}

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

const (

	// JumpJumpPlaneControlPlane captures enum value "control_plane"
	JumpJumpPlaneControlPlane JumpJumpPlane = "control_plane"

	// JumpJumpPlaneDataPlane captures enum value "data_plane"
	JumpJumpPlaneDataPlane JumpJumpPlane = "data_plane"
)

// for schema
var jumpJumpPlaneEnum []interface{}

func init() {
	var res []JumpJumpPlane
	if err := json.Unmarshal([]byte(`["control_plane","data_plane"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		jumpJumpPlaneEnum = append(jumpJumpPlaneEnum, v)
	}
}

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

// Validate validates this jump jump plane
func (m JumpJumpPlane) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this jump jump plane based on context it is used
func (m JumpJumpPlane) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
