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

// HashicorpCloudBoundary20211221ControllerConfiguration The ControllerConfiguration type contains fields from the Boundary cluster controller configuration that can be
// modified.
//
// swagger:model hashicorp.cloud.boundary_20211221.ControllerConfiguration
type HashicorpCloudBoundary20211221ControllerConfiguration struct {

	// Maximum time to live (TTL) for all auth tokens globally (pertains to all tokens from all auth methods).
	AuthTokenTimeToLive string `json:"auth_token_time_to_live,omitempty"`

	// Maximum time of inactivity for all auth tokens globally (pertains to all tokens from all auth methods).
	AuthTokenTimeToStale string `json:"auth_token_time_to_stale,omitempty"`
}

// Validate validates this hashicorp cloud boundary 20211221 controller configuration
func (m *HashicorpCloudBoundary20211221ControllerConfiguration) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud boundary 20211221 controller configuration based on context it is used
func (m *HashicorpCloudBoundary20211221ControllerConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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