agent/ecs_client/model/ecs/api.go
func (s *InferenceAccelerator) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "InferenceAccelerator"}
	if s.DeviceName == nil {
		invalidParams.Add(request.NewErrParamRequired("DeviceName"))
	}
	if s.DeviceType == nil {
		invalidParams.Add(request.NewErrParamRequired("DeviceType"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}
func (s *InferenceAccelerator) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "InferenceAccelerator"}
	if s.DeviceName == nil {
		invalidParams.Add(request.NewErrParamRequired("DeviceName"))
	}
	if s.DeviceType == nil {
		invalidParams.Add(request.NewErrParamRequired("DeviceType"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}
// Validate inspects the fields of the type to determine if they are valid.