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

// ExcludeDuplicateIps exclude duplicate ips
//
// swagger:model ExcludeDuplicateIps
type ExcludeDuplicateIps struct {

	// The collectors for which monitored devices should be used to identify and exclude duplicate IPs, if duplicate type is 4
	// Example: [\"ip-172-31-45-179.us-west-2.compute.internal\"]
	Collectors []string `json:"collectors,omitempty"`

	// The groups for which devices should be used to identify and exclude duplicate IPs, if duplicate type is 3
	// Example: [\"Network Devices\"]
	Groups []string `json:"groups,omitempty"`

	// What types of duplicate IPs should be excluded. Options are 1 (matching any monitored devices), 2 (matching devices already discovered by this scan), 3 (matching devices in these groups), and 4 (matching devices assigned to these collectors)
	// Example: 1
	Type int32 `json:"type,omitempty"`
}

// Validate validates this exclude duplicate ips
func (m *ExcludeDuplicateIps) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this exclude duplicate ips based on context it is used
func (m *ExcludeDuplicateIps) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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