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

// AnonymousAccessSettingsXO anonymous access settings x o
//
// swagger:model AnonymousAccessSettingsXO
type AnonymousAccessSettingsXO struct {

	// Whether or not Anonymous Access is enabled
	Enabled bool `json:"enabled,omitempty"`

	// The name of the authentication realm for the anonymous account
	RealmName string `json:"realmName,omitempty"`

	// The username of the anonymous account
	UserID string `json:"userId,omitempty"`
}

// Validate validates this anonymous access settings x o
func (m *AnonymousAccessSettingsXO) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this anonymous access settings x o based on context it is used
func (m *AnonymousAccessSettingsXO) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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