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

// HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus hashicorp cloud vault 20201125 get replication status response connection status
//
// swagger:model hashicorp.cloud.vault_20201125.GetReplicationStatusResponse.ConnectionStatus
type HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus string

func NewHashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus(value HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus) *HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus {
	return &value
}

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

const (

	// HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusGETREPLICATIONSTATUSRESPONSECONNECTIONSTATUSINVALID captures enum value "GET_REPLICATION_STATUS_RESPONSE_CONNECTION_STATUS_INVALID"
	HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusGETREPLICATIONSTATUSRESPONSECONNECTIONSTATUSINVALID HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus = "GET_REPLICATION_STATUS_RESPONSE_CONNECTION_STATUS_INVALID"

	// HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusDISCONNECTED captures enum value "DISCONNECTED"
	HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusDISCONNECTED HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus = "DISCONNECTED"

	// HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusCONNECTED captures enum value "CONNECTED"
	HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusCONNECTED HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus = "CONNECTED"
)

// for schema
var hashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus
	if err := json.Unmarshal([]byte(`["GET_REPLICATION_STATUS_RESPONSE_CONNECTION_STATUS_INVALID","DISCONNECTED","CONNECTED"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusEnum = append(hashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatusEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault 20201125 get replication status response connection status
func (m HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault 20201125 get replication status response connection status based on context it is used
func (m HashicorpCloudVault20201125GetReplicationStatusResponseConnectionStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
