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

// HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress hashicorp cloud vault 20201125 get replication status response sync progress
//
// swagger:model hashicorp.cloud.vault_20201125.GetReplicationStatusResponse.SyncProgress
type HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress string

func NewHashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress(value HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress) *HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress {
	return &value
}

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

const (

	// HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressGETREPLICATIONSTATUSRESPONSESYNCPROGRESSINVALID captures enum value "GET_REPLICATION_STATUS_RESPONSE_SYNC_PROGRESS_INVALID"
	HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressGETREPLICATIONSTATUSRESPONSESYNCPROGRESSINVALID HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress = "GET_REPLICATION_STATUS_RESPONSE_SYNC_PROGRESS_INVALID"

	// HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressSTREAMING captures enum value "STREAMING"
	HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressSTREAMING HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress = "STREAMING"

	// HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressINPROGRESS captures enum value "IN_PROGRESS"
	HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressINPROGRESS HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress = "IN_PROGRESS"

	// HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressIDLE captures enum value "IDLE"
	HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressIDLE HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress = "IDLE"
)

// for schema
var hashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress
	if err := json.Unmarshal([]byte(`["GET_REPLICATION_STATUS_RESPONSE_SYNC_PROGRESS_INVALID","STREAMING","IN_PROGRESS","IDLE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressEnum = append(hashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressEnum, v)
	}
}

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

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

	// value enum
	if err := m.validateHashicorpCloudVault20201125GetReplicationStatusResponseSyncProgressEnum("", "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 sync progress based on context it is used
func (m HashicorpCloudVault20201125GetReplicationStatusResponseSyncProgress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
