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

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// HashicorpCloudWaypointUIActionConfigBundleVariable hashicorp cloud waypoint UI action config bundle variable
//
// swagger:model hashicorp.cloud.waypoint.UI.ActionConfigBundle.Variable
type HashicorpCloudWaypointUIActionConfigBundleVariable struct {

	// The key of the variable
	Key string `json:"key,omitempty"`

	// If the variable is sensitive
	Sensitive bool `json:"sensitive,omitempty"`

	// The value of the variable
	Value string `json:"value,omitempty"`
}

// Validate validates this hashicorp cloud waypoint UI action config bundle variable
func (m *HashicorpCloudWaypointUIActionConfigBundleVariable) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud waypoint UI action config bundle variable based on context it is used
func (m *HashicorpCloudWaypointUIActionConfigBundleVariable) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *HashicorpCloudWaypointUIActionConfigBundleVariable) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *HashicorpCloudWaypointUIActionConfigBundleVariable) UnmarshalBinary(b []byte) error {
	var res HashicorpCloudWaypointUIActionConfigBundleVariable
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
